Skip to content

Commit 862c5d9

Browse files
committed
Added host
1 parent ce55c58 commit 862c5d9

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

config/production.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
"clientSecret" : "DdSz7JNyB0C8Q7vVtZEircWk",
1212
"callbackURL" : "https://iiita-lectures.herokuapp.com/auth/google/callback"
1313
},
14-
"host":""
14+
"host":"https://iiita-lectures.herokuapp.com"
1515
}

views/gethelp.ejs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
$(function () {
1212
var room_set =[] ;
1313
var host = '<%- config.host %>';
14-
var socket = io.connect(host + '/roomlist');
14+
var socket = io.connect('https://iiita-lectures.herokuapp.com/roomlist');
1515
socket.on('connect', function () {
1616
console.log('Connection Established!');
1717
})

views/page.ejs

+4-3
Original file line numberDiff line numberDiff line change
@@ -614,13 +614,14 @@
614614
//if (response.data !== '') {
615615
//var room_set = localStorage.getItem("room_data");
616616
//room_set = JSON.parse(room_set);
617-
617+
//console.log('https://iiita-lectures.herokuapp.com/messages/'+'<%= course%>');
618618
619619
if(str != '') {
620620
var messages = io.connect('https://iiita-lectures.herokuapp.com/messages/'+'<%= course%>');
621-
/*messages.on('connect',function(){
621+
messages.on('connect',function(){
622+
console.log(messages);
622623
alert('connected');
623-
});*/
624+
});
624625
var room_set = localStorage.getItem("room_data");
625626
room_set = JSON.parse(room_set);
626627
//console.log(room_set[0]);

0 commit comments

Comments
 (0)