Add subscribe, unsubscribe, connect and disconnect logic and reconnection feedback for the websocket