simple-pub-sub-0.1.0-rc2 is not a library.
Visit the last successful build:
simple-pub-sub-0.1.7
Simple-pub-sub
A simple message broker implemented in rust.
The message frame looks like
| header | version | pkt type | topic length | message length | padding | topic | message |
|---|---|---|---|---|---|---|---|
| 1 byte | 2 bytes | 1 byte | 1 byte | 2 bytes | 1 byte | ..... | ..... |
So it's a 8 byte header followed by the topic and message.
Cli Usage
- Server:
-
Client:
- subscribe:
- publish:
- query: