Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add socket.io to basic_example throw error #51

Closed
caok opened this issue Oct 29, 2013 · 2 comments
Closed

Add socket.io to basic_example throw error #51

caok opened this issue Oct 29, 2013 · 2 comments

Comments

@caok
Copy link

caok commented Oct 29, 2013

There has been some problem when i add socket.io to basic_example.

events.js:72
        throw er; // Unhandled 'error' event
              ^
TypeError: Cannot read property 'key' of null

And i add these code:

var socket = require("socket.io");

....................

io = socket.listen(server);
io.sockets.on('connection', function(client) {
  console.log('Client connected...');
}) 
@jcague
Copy link
Contributor

jcague commented Nov 6, 2013

I can't figure out where exactly the problem is on your app since it's not directly related to Licode. Maybe the version of socket.io?

@caok
Copy link
Author

caok commented Nov 11, 2013

Is that possible that:
since erizocontroller already have a socket.io, so I can not call another socket.io again in basicserver.js?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants