neffos.js icon indicating copy to clipboard operation
neffos.js copied to clipboard

[QUESTION] How to use the initializated con globaly?

Open xXLokerXx opened this issue 5 years ago • 1 comments

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 avatar Aug 09 '19 23:08 xXLokerXx

@xXLokerXx One easy way is in layout you can save nsConn in global variable .

majidbigdeli avatar Aug 12 '19 18:08 majidbigdeli