Skip to content

Javascript error while coneecting to server. #41

Open
@manpreetsingh2011

Description

@manpreetsingh2011

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions