illinois / queue

A microservice queue for holding open office hours
University of Illinois/NCSA Open Source License
82 stars 36 forks source link

Add user-facing warning about socket errors #250

Closed nwalters512 closed 5 years ago

nwalters512 commented 5 years ago

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.

vercel[bot] commented 5 years ago

This pull request is automatically deployed with Now. To access deployments, click Details below or on the icon next to each push.