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

Not working with socket.io 1.4.5 #4

Open
ghost opened this issue Oct 10, 2016 · 1 comment
Open

Not working with socket.io 1.4.5 #4

ghost opened this issue Oct 10, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 10, 2016

Is this project still active?

I was not able to get it running with socket.io 1.4.5. Always get the info that monitor is not a function for my socket objects when using the middleware.

Please let me know. If it is not maintained anymore I will start contributing to this project because it would be a very great tool

@papastanley
Copy link

I'd check that your declared socketio variable is correctly named when you attach the monitorio function...

io = require('socket.io')(http, {'pingInterval': 30000, 'pingTimeout': 300000});
monitorio = require('monitor.io');
io.use(monitorio({ port: 8000 })); < -- this needs to use the same name as the require socket call on the first line

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