You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,19 +22,20 @@ You can get a feel of how to use the websocket server by running
22
22
Then just open `client.html` in your browser and you should be able to send and receive messages.
23
23
24
24
25
-
Using on your project
25
+
Using in your project
26
26
=======================
27
-
In order to use the websocket server in your project, simply
28
-
copy `websocket.py` to your project and `from websocket import WebsocketServer`.
29
-
Then use the documented API below to manage the behaviour of your server.
27
+
You can either simply copy/pase the *websocket_server.py* file in your project and use it directly
28
+
or you can install the project directly from PyPi:
30
29
31
-
By default the server doesn't do anything when events occur.
30
+
pip install websocket-server
31
+
32
+
For further details check the [*server.py*](https://github.com/Pithikos/python-websocket-server/blob/master/server.py) example code and the [API](https://github.com/Pithikos/python-websocket-server#api).
32
33
33
34
34
35
API
35
36
=======================
36
37
37
-
The API is simply methods and properties of a`WebsocketServer`instance.
38
+
The API is simply methods and properties of the`WebsocketServer`class.
0 commit comments