Added handling for `error` and `disconnected` events from the server.
Added handling for `error` and `disconnected` events from the server.

HydroLogic/web-pgq,HydroLogic/web-pgq,whitelynx/web-pgq,whitelynx/web-pgq