Swapped websocket implementation