Why do I get 'WebSocket opening handshake was canceled' trying to connect with JSSip?
<p>I am trying to establish connection with JSSip with an already running SIP server. I have followed the documentation and came up with the following code. Here is my code.</p>

<pre><code>&lt;!DOCTYPE html&gt;
&lt;html lang="en"&gt;
    &lt;head&gt;
        &lt;title&gt;&lt;/title&gt;
    &lt;/head&gt;

    &lt;body&gt;&lt;/body&gt;

    &lt;script src="jssip-3.0.0.min.js"&gt;&lt;/script&gt;

    &lt;script&gt;
    var socket = new JsSIP.WebSocketInterface('wss://sip.group.com');
    var configuration = {
        sockets  : [ socket ],
        uri      : 'sip:4051@sip.group.com',
        password : 'password#'
    };

    var coolPhone = new JsSIP.UA(configuration);

    coolPhone.start();

    // Register callbacks to desired call events
    var eventHandlers = {
      'progress': function(e) {
        console.log('call is in progress');
      },
      'failed': function(e) {
        console.log('call failed with cause: '+ e.data.cause);
      },
      'ended': function(e) {
        console.log('call ended with cause: '+ e.data.cause);
      },
      'confirmed': function(e) {
        console.log('call confirmed');
      }
    };

    var options = {
      'eventHandlers'    : eventHandlers,
      'mediaConstraints' : { 'audio': true, 'video': true }
    };

    var session = coolPhone.call('sip:4050@sip.group.com', options);
    &lt;/script&gt;
&lt;/html&gt;
</code></pre>

<p>My extension from the server is 4051 and I'm trying to make a call to 4050 my colleague. However, if I open the console of Chrome I see the following error:</p>

<pre><code>WebSocket connection to 'wss://sip.group.com/' failed: WebSocket opening handshake was canceled
</code></pre>