update to https for sockets
This commit is contained in:
parent
92ddbbaf4f
commit
6c7ba76937
1 changed files with 2 additions and 1 deletions
|
@ -1909,7 +1909,7 @@ Metamaps.Util = {
|
|||
Metamaps.Realtime = {
|
||||
stringForLocalhost: 'http://' + location.host.split(':')[0] + ':5001',
|
||||
stringForMetamaps: 'http://metamaps.cc:5001',
|
||||
stringForHeroku: 'http://gentle-savannah-1303.herokuapp.com',
|
||||
stringForHeroku: 'https://gentle-savannah-1303.herokuapp.com',
|
||||
videoId: 'video-wrapper',
|
||||
socket: null,
|
||||
webrtc: null,
|
||||
|
@ -1945,6 +1945,7 @@ Metamaps.Realtime = {
|
|||
var whichToConnect = railsEnv === 'development' ? self.stringForLocalhost : self.stringForHeroku;
|
||||
self.socket = new SocketIoConnection({ url: whichToConnect });
|
||||
self.socket.on('connect', function () {
|
||||
console.log('connected');
|
||||
self.startActiveMap();
|
||||
});
|
||||
self.webrtc = new SimpleWebRTC({
|
||||
|
|
Loading…
Reference in a new issue