Implement websocket reconnect functionality with a 2sec delay