mirror of
https://github.com/vacp2p/mvds.git
synced 2026-01-08 19:48:03 -05:00
Update README.md
This commit is contained in:
11
README.md
11
README.md
@@ -12,6 +12,17 @@ Experimental implementation of the [minimal viable data sync protocol specificat
|
||||
|
||||
## Usage
|
||||
|
||||
Listening to MVDS messages is fairly simple:
|
||||
|
||||
```go
|
||||
sub := node.Subscribe()
|
||||
|
||||
for {
|
||||
msg := <-sub
|
||||
print(msg)
|
||||
}
|
||||
```
|
||||
|
||||
### Prerequisites
|
||||
|
||||
Ensure you have `protoc` (Protobuf) and Golang installed. Then run `make`.
|
||||
|
||||
Reference in New Issue
Block a user