-
Notifications
You must be signed in to change notification settings - Fork 26
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
io is not defined #2
Comments
Hello Trang, The socket.io connection in this demo is very simple, because it's using the default parameters. The client is configured at line 6 of this file: https://github.com/jlmonteagudo/voteExpress/blob/master/public/js/services/socketio.js This is the code: var socket = io.connect(); The server is configured at line 3 of this file: This is the code: var socketIO = require('socket.io').listen(server); I don't know why you aren't getting connected; have you checked your browser console to see if there is any error? have you checked your browser Network tab to see what URLs is trying to connect socket.io? |
Hi, thanx for reply. |
@TrangNguyen
|
Hi, could you help please. Your app works perfectly but when I tried to integrate with https://github.com/linnovate/mean I got this error "io is not defined", which is listed here linnovate/mean#272. Your app and mean.io structurally is from the app by Madhums, that's why I thought it should be easy to switch. Mean.io uses swig as template engine to allow html.
When I start server, socket.io server side started but client side is not connected properly (?) because it does not do anything.
Any hint greatly appreciated.
Trang
The text was updated successfully, but these errors were encountered: