python-websocket-server icon indicating copy to clipboard operation
python-websocket-server copied to clipboard

A simple fully working websocket-server in Python with no external dependencies

Results 40 python-websocket-server issues
Sort by recently updated
recently updated
newest added

How can I retrieve URL query parameters in the on_connect method? For example: I have a client which connects using the following url: `ws://localhost:5000?identification=web-client` How can I retrieve the `identification`...

I think having headers & query params inside the websocket handler object should be a very useful information for servers. Would be keen to hear opinions of the maintainers, thank...

This is a problem as it leads to a memory leak, when a server cant send somthing to another client (like a kick command..), fails and raises an exemption. this...

sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM); addr = ("127.0.0.1", 9001); sock.connect(addr) Abnormal port connection requests will cause the websocket-server to report an error

```python3 #!/usr/bin/env python3 import logging import random import time import websocket_server def new_client(client, server): server.send_message_to_all("Hey all, a new client has joined us") server = websocket_server.WebsocketServer(host='127.0.0.1', port=13254, loglevel=logging.INFO) server.set_fn_new_client(new_client) server.run_forever(threaded=True) m...

How can i reset the Client list when **set_fn_client_left()** Like... ```python def ResetClients(client,server): client = {} #or client.clear() server.set_fn_client_left(ResetClients) ```

Hey I've made an website, which sends some date from input text fields to the websocket. The problem is, when I reload or even close the page the following error...

Hi, I am getting an exception when I call shutdown_gracefully() ERROR:websocket_server.websocket_server:******************************************************************************** Exception in child thread : [WinError 10038] An operation was attempted on something that is not a socket ********************************************************************************...

I noticed that you have instructions to send to a specific client, but when I print our the value of "client", I just get back the current user's information. If...