JsSIP.WebSocketInterface
JsSIP built-in JsSIP.Socket
interface for browser environments.
JsSIP internally creates the required instances of this class if the ws_servers configuration parameter is provided to JsSIP.UA
.
Attribute setters allow socket customization if required.
Instantiation
Takes a single String
parameter indicating the WebSocket server URL.
Throws
Attribute setters
via_transport
(value)
String
indicating the Via transport used in the Via Header field for outgoing Requests.
Example
var socket = new JsSIP.WebSocketInterface('ws://sip-ws.example.com');
socket.via_transport = "tcp";
configuration.sockets = [ socket ];
var ua = new UA(configuration);