Examples for JSON -> protobuf, JSON -> JSON, protobuf -> protobuf.
Start the rust server with cargo run
.
Then start a redis-server
and the redis client with redis-cli
on a different terminal tab. Subscribe to events on redis-cli with subscribe events
.
Once the rust protobuf-websocket server and redis-server
are running, and redis-cli
is subscribed to events
, you may run
python3 client.py
to see the examples.