Spoof out an example
This commit is contained in:
parent
01b3980f47
commit
fe32a87a63
15
README.md
15
README.md
@ -13,5 +13,18 @@ $ pip install simple-message-channels
|
||||
## Example
|
||||
|
||||
```python
|
||||
print("TODO")
|
||||
from simple_message_channels import SimpleMessageChannel
|
||||
|
||||
smc = SimpleMessageChannel()
|
||||
|
||||
send = smc.send(1, 2, b"foo")
|
||||
recv = smc.recv(send_payload)
|
||||
|
||||
print(f"send: {send}", f"recv: {recv}, sep="\n")
|
||||
```
|
||||
|
||||
Output:
|
||||
|
||||
```sh
|
||||
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user