How to disconnect a websocket programmatically?

The close method is for clients.