webRTC-io / webRTC.io

An abstraction layer for webRTC. Aim is to simplify the HTML5 web standard webRTC in a similar manner to socket.io w/ websockets. Highly experimental technology
1.6k stars 293 forks source link

Javascript error while coneecting to server. #41

Open manpreetsingh2011 opened 10 years ago

manpreetsingh2011 commented 10 years ago

Kudos to the team for making this library.

The following code gives a JavaScript error on the browser.

CLIENT CODE : rtc.connect('ws://abc.in:8001');

SERVER CODE : var webRTC = require('/usr/local/node_modules/webrtc.io/lib/webrtc.io').listen( 8001 );

console.log( "Server Listening" );

webRTC.on( "connection", function() {

console.log( "Hi" ); // This gets executed successfully.

});

Error is : Uncaught TypeError: Type error rtc._socket.onopen

Error Location: webrtc.io.js:65

I am using latest version of Google Chrome which happens to be Version 30.0.1599.101 m right now, running on Windows 7...

Please resolve