Lines Matching refs:server
4 …m/gh/Pithikos/python-websocket-server/tree/master.svg?style=svg)](https://circleci.com/gh/Pithikos…
15 websocket server for prototyping, testing or for making a GUI for your application.
24 2. `pip install git+https://github.com/Pithikos/python-websocket-server` (latest code)
25 3. `pip install websocket-server` (might not be up-to-date)
27 …server.py*](https://github.com/Pithikos/python-websocket-server/blob/master/server.py) example and…
32 You can get a feel of how to use the websocket server by running
34 python server.py
85 | `set_fn_new_client()` | Called for every new `client` connecting to us | client, server …
86 | `set_fn_client_left()` | Called for every `client` disconnecting from us | client, server …
87 | `set_fn_message_received()` | Called when a `client` sends a `message` | client, server,…
90 The client passed to the callback is the client that left, sent the message, etc. The server might …
98 def new_client(client, server):
99 server.send_message_to_all("Hey all, a new client has joined us")
101 server = WebsocketServer(13254, host='127.0.0.1', loglevel=logging.INFO)
102 server.set_fn_new_client(new_client)
103 server.run_forever()