isWebSocketAllowed

Checks if the WebSocket connection is allowed.

Return

True if the WebSocket connection is allowed, false otherwise.