Backendless.shared.rt.addConnectEventListener(responseHandler: (() -> Void))
notifies you when socket is successfully connected to server
Backendless.shared.rt.addConnectErrorEventListener(responseHandler: ((String) -> Void))
notifies you about the error that appeared when trying to connect socket to server (socket connection failed)
Backendless.shared.rt.addReconnectAttemptEventListener(responseHandler: (ReconnectAttemptObject) -> Void)!)
notifies you about the reconnect attempt. E.g. If your socket lost connection it will try to reconnect automatically.
Backendless.shared.rt.addDisсonnectEventListener(responseHandler: ((String) -> Void)!)
notifies you that your socket has been disconnected from server and shows the reason. E.g. it may be the issue on the server side.
Thats why could you please provide the message received from the DisсonnectEventListener?
It should tell the reason of that disconnection.