Automatically reconnect when websocket gets closed

Todos:
set up some kind of delay and exponential backoff