This shows a modal to the user if the socket fails to connect. To test, you can add the following code to src/socket/server.js in the io.use(...) authentication middleware:
next(new Error('rip'))
return
The setSocketStatus action isn't in use yet, but I figured we could use that in the future to show an indicator of if the socket is connected to, is reconnecting, errored, etc.
This shows a modal to the user if the socket fails to connect. To test, you can add the following code to
src/socket/server.js
in theio.use(...)
authentication middleware:The
setSocketStatus
action isn't in use yet, but I figured we could use that in the future to show an indicator of if the socket is connected to, is reconnecting, errored, etc.