Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #18 from danielkutik/master

Listing port defined in env variable
  • Loading branch information...
commit 4d3492f9ba2a340fa82a674d382d321554b3a1e6 2 parents 1967058 + 8502bf8
@sarenji sarenji authored
Showing with 3 additions and 3 deletions.
  1. +1 −2  site/script.js
  2. +2 −1  site/server.js
View
3  site/script.js
@@ -1,5 +1,4 @@
var videos = [];
-var rooms = [1, 2, 3, 4, 5];
var PeerConnection = window.PeerConnection || window.webkitPeerConnection00 || window.webkitRTCPeerConnection;
function getNumPerRow() {
@@ -155,7 +154,7 @@ function initChat() {
}
}, false);
rtc.on(chat.event, function() {
- data = chat.recv.apply(this, arguments);
+ var data = chat.recv.apply(this, arguments);
console.log(data.color);
addToChat(data.messages, data.color.toString(16));
});
View
3  site/server.js
@@ -2,7 +2,8 @@ var app = require('express')();
var server = require('http').createServer(app);
var webRTC = require('webrtc.io').listen(server);
-server.listen(8000);
+var port = process.env.PORT || 8080;
+server.listen(port);
Please sign in to comment.
Something went wrong with that request. Please try again.