Permalink
Browse files

fix websocket problems with lisen to server

  • Loading branch information...
1 parent 308684d commit effe58348b0ce40c19f17e111b27ecfbeb6c9913 Dennis Mårtensson committed Aug 11, 2012
Showing with 6 additions and 5 deletions.
  1. +1 −1 example/index.html
  2. +3 −2 example/server.js
  3. +2 −2 package.json
View
@@ -166,7 +166,7 @@
var room = window.location.hash.slice(1);
//When using localhost
- rtc.connect("ws://localhost:8001/", room);
+ rtc.connect("ws://localhost:8000/", room);
rtc.on('add remote stream', function(stream, socketId) {
console.log("ADDING REMOTE STREAM...");
View
@@ -1,7 +1,8 @@
var app = require('express').createServer();
-var webRTC = require('webrtc.io').listen(8001);
-
app.listen(8000);
+var webRTC = require('webrtc.io').listen(app);
+
+
app.get('/', function(req, res) {
res.sendfile(__dirname + '/index.html');
View
@@ -1,12 +1,12 @@
{
"name": "MultiWebRTC",
"description": "Example of multi user webrtc",
- "version": "0.0.1-43",
+ "version": "0.0.1-47",
"engines": {
"node": ">= 0.6.0"
},
"dependencies": {
- "webrtc.io": "latest",
+ "webrtc.io": "0.0.0",
"express": "2.5.1",
"ws": "latest"
},

0 comments on commit effe583

Please sign in to comment.