About "No more implicit connection to the default namespace" #4037
-
How to connect to the main namespace or other custom namespaces without "socket.io-client"? I am developing a wechat micro program, any third party framework is not supported. Before 3.x, I can connect socket.io server like this But now it does not work, connection will always be closed after 45000ms, because I cannot successfully joined a namespace before the "connectTimeout" expired. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You need to send a CONNECT packet: 4 => Engine.IO "message" type Edit: or More information here: https://github.com/socketio/socket.io-protocol |
Beta Was this translation helpful? Give feedback.
You need to send a CONNECT packet:
40
.4 => Engine.IO "message" type
0 => Socket.IO CONNECT type
Edit: or
40/my-custom-namespace,
, for a custom namespaceMore information here: https://github.com/socketio/socket.io-protocol