neffos.js
neffos.js copied to clipboard
[QUESTION] How to use the initializated con globaly?
I've implement neffos to connect with iris server with the example in the folder _example/websocket/basic/browser
and i like to use, the returned nsConn
variable, in other files than that one, this will help me to emit
from another events.
Is it possible? Could you please post a piece of code of it would be?
@xXLokerXx One easy way is in layout you can save nsConn
in global variable .