Native websocket abstraction.