Shim window.WebSocket