I have a node app with socket.io installed. I have a socket.on function in my server.js file called “count-num” that was originally supposed to be called from a client and I wish to call it from a different place in the same server.js file, in e.g. another function. Does anyone have any ideas of how to accomplish this?
Submitted November 03, 2018 at 07:42PM by PaintVomit
No comments:
Post a Comment