You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In case calling Manager's method socket with the auth data it emits two auth messages which causes an error
To Reproduce
Please fill the following code example:
Socket.IO client version: 4.7.1
Client
import{Manager}from"socket.io-client";constmanager=newManager("ws://localhost:3000/",{transports: ['websocket'],upgrade: false});constsocket=manager.socket('my-namespace',{auth: {'X-Auth': 'XXX-XXX-XXX'}});socket.on("connect",()=>{// at this moment it is already failedconsole.log(`connect ${socket.id}`);});socket.on("disconnect",()=>{console.log("disconnect");});
Expected behavior
At moment a first connect callback is set the socket must be 100% connected.
Describe the bug
In case calling
Manager
's methodsocket
with theauth
data it emits two auth messages which causes an errorTo Reproduce
Please fill the following code example:
Socket.IO client version:
4.7.1
Client
Expected behavior
At moment a first
connect
callback is set the socket must be 100% connected.Platform:
Workaround
#474 (comment)
The text was updated successfully, but these errors were encountered: