-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
🗿 Added a real-time Dashboard with Socket.io #23
Conversation
Hi dstroot, thank you for your pull request. I have written a detailed explanation in the guide section on how to use socket.io with hackathon starter as to why this cannot be part of the project. That section explains everything one needs to get started with socket.io. I used your committed code as a reference, with slight modifications to make things simple, so not to overwhelm beginners with all that production optimization stuff. I have taken a few things from your code and merged it with
|
I would also suggest to present Sockjs as a valid (i would say, preferable) alternative to Socket.io. |
Sahat - I like how you documented this in the readme - very cool! |
@sixFingers I have not heard of Sockjs until you mentioned it. It's just socket.io seems to be the de facto library for doing websockets in Node. Can it do something that socket.io cannot do? From learning perspective I would imagine socket.io would be easier to learn for beginners due to large number of available tutorials, screencasts, guides on the topic. @dstroot Thanks! |
@sahat this is a good explanation of the differences: http://xsnippet.org/359042/ |
First of all, thanks to both sahat and dstroot for your wonderfull work :) Just some correction in the readme, you forgot to add this change :
to
Without this, socket.io.js is not found :/ |
@bcldvd Thanks! I have it as |
Thought this project would be more fun/interesting with a real-time dashboard driven by socket.io.
I created a new dashboard page that shows real-time connections and browsing activity. Typically this would be in an admin-type area of the app.
I know this clutters the example a bit so you may not want to accept this but it's pretty cool. No worries if you don't want to merge it.