Closed dasavc closed 1 year ago
Describe the bug I cannot get the Java client to connect, server does not even register the connection attempt. Node server works as it's serving other clients. Any ideas how I could at least get error description?
To Reproduce
val options = IO.Options() options.forceNew = true options.reconnection = true options.reconnectionDelay = 2000 options.reconnectionDelayMax = 5000 try { mSocket = IO.socket("https://xx.xxx.xx.xx") mSocket!!.on(Socket.EVENT_CONNECT, onConnect) mSocket!!.on(Socket.EVENT_CONNECT_ERROR, onConnectError) mSocket!!.on(Socket.EVENT_DISCONNECT, onDisconnect) if (!mSocket!!.connected()) { mSocket!!.connect() } } catch (e: URISyntaxException) { throw RuntimeException(e) } private val onConnectError = Emitter.Listener { Log.d("SOCKETIO", "onConnectError") }
On the server I'm trying to capture the attempt:
io.on("connect_error", (err) => { console.log(`connect_error due to ${err.message}`); });
Server Socket.IO server version: 4.5.1
Client Socket.IO java client version: 2.1.0
The problem was in network configuration and is not related to socketio.
Describe the bug I cannot get the Java client to connect, server does not even register the connection attempt. Node server works as it's serving other clients. Any ideas how I could at least get error description?
To Reproduce
On the server I'm trying to capture the attempt:
Server Socket.IO server version: 4.5.1
Client Socket.IO java client version: 2.1.0