WebSocket URI of the SIP server, whose scheme must be ws
or wss.
Called once the WebSocket is open.
Called once the WebSocket is closed, cleanly or not.
Called for every message received over the WebSocket.
Transport protocol to announce in the Via header field of outgoing
requests (for example WSS).
The WebSocket URI given to the constructor.
Send a SIP message over the WebSocket.
Whether the message was handed to the WebSocket, so false if
it is not open.
Whether the WebSocket is open.
Whether the WebSocket is still opening.
Built-in Socket implementation for browser environments, as defined by RFC 7118.
Remarks
sipsubprotocol, so the server must support it.Example