kataras / neffos.js

Node.js and Browser support for the neffos real-time framework written in Typescript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[QUESTION] How to use the initializated con globaly?

xXLokerXx opened this issue · 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 One easy way is in layout you can save nsConn in global variable .