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
@@ -10,9 +10,7 @@ This is a WebSocket real-time SDK for [Centrifugo](https://github.com/centrifuga
10
10
> [!TIP]
11
11
> If you are looking for Centrifugo [server API](https://centrifugal.dev/docs/server/server_api) client – check out [pycent](https://github.com/centrifugal/pycent) instead.
12
12
13
-
Before starting to work with this library check out [Centrifugo client SDK API specification](https://centrifugal.dev/docs/transports/client_api) as it contains common information about Centrifugal real-time SDK behavior.
14
-
15
-
The features implemented by this SDK can be found in [SDK feature matrix](https://centrifugal.dev/docs/transports/client_sdk#sdk-feature-matrix).
13
+
Before starting to work with this library check out [Centrifugo client SDK API specification](https://centrifugal.dev/docs/transports/client_api) as it contains common information about Centrifugal real-time SDK behavior. This SDK supports all major features of Centrifugo client protocol - see [SDK feature matrix](https://centrifugal.dev/docs/transports/client_sdk#sdk-feature-matrix).
16
14
17
15
## Install
18
16
@@ -47,23 +45,6 @@ When using Protobuf protocol:
47
45
48
46
Event callbacks are called by SDK using `await` internally, the websocket connection read loop is blocked for the time SDK waits for the callback to be executed. This means that if you need to perform long operations in callbacks consider moving the work to a separate coroutine/task to return fast and continue reading data from the websocket.
49
47
50
-
## Run tests
51
-
52
-
To run tests, first start Centrifugo server:
53
-
54
-
```bash
55
-
docker run -p 8000:8000 centrifugo/centrifugo:v5 centrifugo --client_insecure --log_level debug
56
-
```
57
-
58
-
And then:
59
-
60
-
```bash
61
-
python -m venv env
62
-
. env/bin/activate
63
-
make dev
64
-
make test
65
-
```
66
-
67
48
## Run example
68
49
69
50
To run [example](https://github.com/centrifugal/centrifuge-python/blob/master/example.py), first start Centrifugo with config like this:
@@ -95,3 +76,26 @@ python -m venv env
95
76
make dev
96
77
python example.py
97
78
```
79
+
80
+
## Run tests
81
+
82
+
To run tests, first start Centrifugo server:
83
+
84
+
```bash
85
+
docker pull centrifugo/centrifugo:v5
86
+
docker run -d -p 8000:8000 -e CENTRIFUGO_TOKEN_HMAC_SECRET_KEY="secret" -e CENTRIFUGO_PRESENCE=1 \
0 commit comments