Skip to main content
WebSocket.protocol - WebSockets - Web documentation
property WebSocket.protocol
Private

Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor's second argument to perform subprotocol negotiation.

Type

string