In WebSocketTransport constructor, throw an exception if !WebSocket