Pithikos / python-websocket-server

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

Close connections for a specific client #100

Closed MrNom4ik closed 2 years ago

MrNom4ik commented 2 years ago

Hello! Please add a function to close connections for a specific client. Example: client.close() Or: WebsocketServer.close_client(client)

Pithikos commented 2 years ago

That would be helpful probably. For a temporary workaround you can have a look at _disconnect_clients to do something similar manually