Can't enable debug messages when using client in a web worker #5104
Labels
enhancement
New feature or request
package:socket.io-client
This concerns the "socket.io-client" package
You want to:
Current behavior
The documentation says to set localStorage.debug = '' in order to turn on debug messages, but when using socket.io-client from inside of a web worker we don't have access to localStorage. We tried explicitly calling debug.enable('') from the worker, but that doesn't seem to work either.
As doing more work in terms of I/O and processing (we are loading large datasets into the client) is moving to worker threads this is likely to become a more common issue. I'm not familiar enough with the setup to know whether this needs to be handled by socket-io.client or the debug library that it uses.
The text was updated successfully, but these errors were encountered: