Simple scenario:
socket = io.connect(...)
Try the following code:
self.socket?.manager?.reconnects = false