Added retries to WebSocket Server connections.