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
Before I used the cluster adapter, I updated the socket data as follows: let user = new User(......) let sockets = await io.in(user.uid).fetchSockets(); for (let i = sockets.length - 1; i >= 0; i--) { sockets[i].data.user = user; }
Then when I called the fetchSockets() elsewhere, the socket data had changed.
But now when I use the cluster adapter, the socket data does not change.
How can I do this without disconnecting the socket?
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
Uh oh!
There was an error while loading. Please reload this page.
-
Before I used the cluster adapter, I updated the socket data as follows:
let user = new User(......)
let sockets = await io.in(user.uid).fetchSockets();
for (let i = sockets.length - 1; i >= 0; i--) { sockets[i].data.user = user; }
Then when I called the
fetchSockets()
elsewhere, the socket data had changed.But now when I use the cluster adapter, the socket data does not change.
How can I do this without disconnecting the socket?
Beta Was this translation helpful? Give feedback.
All reactions