Minimalist wrapper for `WebSocket` native object in the browser.