How do I close a server with socket.io (stop it from listening to a port) -


How can I turn off a listener which was opened with something like socket.io Was:

  io = require ('socket.io'). Listen (3333);   

and then in some time:

  io.closeListener ()    

On the server side, you can:

  socket.disconnect ();    

Comments

Popular posts from this blog

c++ - why does this code produce a runtime error? -

Android - Facebook GraphUser has no email attribute -

Opencart and VQMOD issue: Could not load controller in vq2-system_engine_controller.php -