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

Error running your sample code #1

Open
lucky-lou opened this issue Dec 22, 2017 · 0 comments
Open

Error running your sample code #1

lucky-lou opened this issue Dec 22, 2017 · 0 comments

Comments

@lucky-lou
Copy link

When I run the sample code I get the following error:

TypeError: Cannot read property 'on' of undefined
at Socket.on in socket-io-server/lib/index.js — line 122
Socket.prototype.on = function (id, event, callback) {
	var socket = this.getSocket(id);
	socket.on.call(socket, event, callback);
};
/**
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

1 participant