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

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -