JsSIP.WebSocketInterface
JsSIP built-in JsSIP.Socket
interface for browser environments.
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);