Pithikos / python-websocket-server

A simple fully working websocket-server in Python with no external dependencies
MIT License
1.14k stars 381 forks source link

How to close the connection? #38

Closed wangjian8006 closed 6 years ago

Pithikos commented 6 years ago

You mean the server? You can use self.shutdown() or self.server_close. Probably in the future there will be a shortcut as part of the API.

wangjian8006 commented 6 years ago

The client is shut down by the server,will happen error.

Pithikos commented 6 years ago

Not sure what you mean. Please try to elaborate and I will try to have a look at it.