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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
1. session object from client-side is empty and only has cookie info:
The following code is a working Example to get the session info from client-side.
Server-Side (Node.js + PostgreSQL):
Client-Side (react-native app):
To solve the problem of getting "empty session object" you need to add withCredentials: true
2. socket.join() not working
In Socket.IO 3.0 the socket.join method is synchronous and does not accept a callback.
change this:
to this:
and to leave a room :
Thanks to Me :) , this, and this.
Beta Was this translation helpful? Give feedback.
All reactions