mscdex / socksv5

SOCKS protocol version 5 server and client implementations for node.js
MIT License
400 stars 121 forks source link

What is the proper way to shut down the server? #46

Closed T-vK closed 3 years ago

T-vK commented 3 years ago

There doesn't seem to be a close, end, exit, destroy method or anything in the API docs to shut down the server properly. Am I missing something?

mscdex commented 3 years ago

server.close() with an optional callback passed in, like with a net.Server.

T-vK commented 3 years ago

Thanks for the quick response. :)