Closed JK-Effects closed 2 years ago
Hi!
Yes, we keep track of some internal data in the socket.data._admin
object: https://github.com/socketio/socket.io-admin-ui/blob/a8ce5262d51c9db44da048cb71186be322ee4929/lib/index.ts#L342-L347
So this line breaks:
socket.data = data
This might not be the best idea actually, but it is needed to work with multiple Socket.IO servers.
Hi!
Yes, we keep track of some internal data in the
socket.data._admin
object:So this line breaks:
socket.data = data
This might not be the best idea actually, but it is needed to work with multiple Socket.IO servers.
Thanks for helping - after I changed socket.data
to socket.socketData
for example it worked fine
Issue: Local development in VS Code runs without problems or crashes. However, when I upload the application to a server, it runs until a Socket.io connection is established or the connected web page is refreshed. I don't know if this relates to the admin UI specifically as in the filepath below or if this is a Socket.io issue in general. Perhaps this also has to do with the middleware which holds up a request until an action has completed so that non-existent data cannot be accessed.
Serverconsole: