-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Emitting to a room can't work with CoffeeScript since "in" is a key word in CS. #1191
Comments
This looks more like a CoffeeScript issue. This "in" should be treated as a function call. It's a parsing inaccuracy in CS. "In" is also a keyword in JS and it's not complaining. |
You should be able to use |
Oops; It's already fixed in the latest coffeescript release: 1.6.2 |
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Emitting an event to all clients in a particular room
io.sockets.in('room').emit('event_name', data)
will be compiled to
io.sockets"in".emit('event_name', data)
The text was updated successfully, but these errors were encountered: