DEV Community

Discussion on: How to use socket.io-client correctly in React app

Collapse
 
dtweblife profile image
Daniel Thomas

I don't understand the JWT part. It's not written in relation to context. I have my app with a callback that is receiving the jwt on login then storing in storage which is when I want to connect to the socket, but I'm not too sure how to pass that jwt to context or force it to update when the jwt is available.