Skip to main content

property WebSocket.protocol

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

你找到了你需要的东西吗?

隐私政策