Support WebSocket.isSupported() method that will return true if WebSocket.newWebSocketIfSupported() will not return a null value.