Reconnecting websockets

added a frontend lib to reconnect websockets when the server dies, or users' connection drops