Uses npm packeges for socket.io and jsSHA.

This commit is contained in:
Boris Grozev 2015-08-12 21:50:42 +02:00
parent fd7e8c9162
commit 7f1eb617c3
3 changed files with 6 additions and 4 deletions

View File

@ -11,8 +11,6 @@
<meta itemprop="image" content="/images/jitsilogo.png"/>
<script src="https://api.callstats.io/static/callstats.min.js"></script>
<script src="libs/jquery-2.1.1.min.js"></script>
<script src="https://cdn.socket.io/socket.io-1.2.0.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jsSHA/1.5.0/sha.js"></script>
<script src="config.js?v=12"></script><!-- adapt to your needs, i.e. set hosts and bosh path -->
<script src="libs/strophe/strophe.min.js?v=2"></script>
<script src="libs/strophe/strophe.disco.min.js?v=1"></script>

View File

@ -1,4 +1,6 @@
/* global config, $, APP, Strophe, callstats */
var jsSHA = require('jssha');
var io = require('socket.io-client');
var callStats = null;
function initCallback (err, msg) {
@ -11,7 +13,7 @@ var CallStats = {
if(!config.callStatsID || !config.callStatsSecret || callStats !== null)
return;
callStats = new callstats($,io,jsSHA);
callStats = new callstats($, io, jsSHA);
this.session = jingleSession;
this.peerconnection = jingleSession.peerconnection.peerconnection;

View File

@ -22,7 +22,9 @@
"sdp-transform": "1.4.0",
"sdp-simulcast": "0.1.0",
"async": "0.9.0",
"retry": "0.6.1"
"retry": "0.6.1",
"jssha": "1.5.0",
"socket.io-client": "1.3.6"
},
"devDependencies": {
},