I am trying to access io.sockets to bind a callback to the "connection" event, but I am not able to access the "io" object from app.js or websocket/*.js anyway.
I am using the MVC Node.ACS framework and while I can access app and express objects from the start function defined in the app.js, I don't know how to access io.
Could you provide me with some directions?
best
Antonio
Did you ever get any information on how to get access to the io object from app.js?
I am looking for info relating to this - I would like to send out data on the socket from one of my normal controllers (i.e. not the websocket controllers) but I cannot find how to get access to the io object to do this send.
If anyone knows I would appreciate some pointers please.
Cheers,
lars
Hey dude. I'm trying to do exactly the same thing, a few months later.
Did you ever find a solution?
--
You received this message because you are subscribed to a topic in the Google Groups "Node.ACS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-acs/qFKR9tY3GH4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-acs+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.