Can websocket server disconnect client?

I am using node.js with socket.io module . Sometimes I have to disable the websocket client. Can I force this from the server, or should the server "ask" the client to disconnect?

Note. From the server, I tried socket.end () which works from the client but not the server side.

+3


source to share





All Articles