socket madness

This commit is contained in:
Martin Donnelly 2016-04-20 15:37:55 +01:00
parent 3228c50542
commit 59a3305292

View File

@ -376,7 +376,9 @@ var SOWEBSOCKET = function() {
this.startWebSocket = function() {
'use strict';
console.log('Starting socket?');
var url = 'ws://localhost:8080';
//var url = 'ws://localhost:8080';
var url = 'ws://ec2-52-50-147-81.eu-west-1.compute.amazonaws.com/:8080';
var wsCtor = window['MozWebSocket'] ? MozWebSocket : WebSocket;
this.socket = new wsCtor(url, 'stream');