Close all of the setTimeouts when the websocket closes to prevent weird connect loops if the computer is put to sleep, also fix weird lag directly after a disconnect.
Close all of the setTimeouts when the websocket closes to prevent weird connect loops if the computer is put to sleep, also fix weird lag directly after a disconnect.

xwiki-labs/netflux-websocket