-
Notifications
You must be signed in to change notification settings - Fork 841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Socket not connecting #1479
Comments
I am facing the same issue. I did the configuration similar to socket.io on android, but I can't connect. |
@muk-y use this
|
@Crysis21 are you able to test with the latest development branch? I'm having trouble reproducing on that branch. Screenshot shows server upgrading from polling to WS My basic test code: func connectSocket() {
socket.connect(withPayload: ["hello": "world"])
}
manager = SocketManager(socketURL: URL(string:"http://localhost:8087/")!, config: [])
socket = manager.defaultSocket
connectSocket() |
I don't have the useCustomEngine property in Socket.IO-Client-Swift 15.2.0. Which version has the property? I have used all the codes besides useCustomEngine but the error is still the same. |
@muk-y did you find any solution? |
I have the same issue on the latest version of the library. |
I passed my parameters through string concatination instead of using connectParams. This solved my issue. |
My socket is not connecting, the version I am using is as follows
Server: socket.io: "^4.6.1"
Client: Socket.IO-Client-Swift 15.2.0
I am getting error as follows:
LOG SocketIOClient{/}: Handling event: statusChange with data: [connecting, 2]
LOG SocketIOClient{/}: Joining namespace /
LOG SocketManager: Tried connecting socket when engine isn't open. Connecting
LOG SocketManager: Adding engine
LOG SocketManager: Manager is being released
LOG SocketEngine: Starting engine. Server: https://chat.mukeshakya.com.np/
LOG SocketIOClient{/}: Client is being released
LOG SocketEngine: Handshaking
LOG SocketEngine: Engine is being released
Note: The socket is successfully connecting in website as well as android. Can anybody help me?
The text was updated successfully, but these errors were encountered: