Simple websocket wrapper with reconnection functionality