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
if connectParams != nil {
for (key, value) in connectParams! {
let keyEsc = key.urlEncode()!
let valueEsc = "\(value)".urlEncode()!
queryString += "&\(keyEsc)=\(valueEsc)"
}
}
The correct syntax is ==>
this.socket = new SocketIO('http://localhost:3000', { connectParams: {token: "someToken"} })
This feature seems to be missing from this package. I checked the code and the connect() method doesn't take any parameters.
With pure socket.io you can do something like this:
io.connect(socketUrl, {query: "email=" + store.get('profile').email + "&type=pc"})
I tried passing the query string like this:
new SocketIO(socketUrl, {query: "[email protected]&type=web"});
The above doesn't work though. I'm not able to get the query string on my server.
The text was updated successfully, but these errors were encountered: