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

sql - Return Function using Cursor -

sql server - How to use pivot in this table -

javascript - Is there any way to add a new parameter to a function programmatically? -