Subscribe notes

This commit is contained in:
Oskar Thoren 2021-06-10 16:43:13 +08:00
parent d902b713bf
commit 7ab932532c
No known key found for this signature in database
GPG Key ID: B2ECCFD3BC2EF77E
1 changed files with 4 additions and 2 deletions

View File

@ -79,7 +79,10 @@ func postWakuRelayMessage(client *rpc.Client, message WakuRelayMessage) bool {
return res
}
// TODO Subscribe
// TODO Subscribe, then poll for getting messages
// https://rfc.vac.dev/spec/16/#post_waku_v2_relay_v1_subscriptions
// https://rfc.vac.dev/spec/16/#get_waku_v2_relay_v1_messages
// For now, just do query and publish
func main() {
fmt.Println("JSON RPC request...")
@ -104,4 +107,3 @@ func main() {
var res = postWakuRelayMessage(client, message)
fmt.Println("Publish", res)
}