From 495827ed63f51aa245a4b04458d1d4a9112caaa4 Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Mon, 2 Aug 2021 12:26:07 +1000 Subject: [PATCH] Rephrased --- guides/relay-receive-send-messages.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/guides/relay-receive-send-messages.md b/guides/relay-receive-send-messages.md index 0a9d4afa99..9bc00e24ef 100644 --- a/guides/relay-receive-send-messages.md +++ b/guides/relay-receive-send-messages.md @@ -76,9 +76,9 @@ await waku.relay.send(wakuMessage); Sending strings as messages in unlikely to cover your dApps needs. To include structured objects in Waku Messages, -We recommend you use [protobuf](https://developers.google.com/protocol-buffers/). +we recommend you use [protobuf](https://developers.google.com/protocol-buffers/). -First, let's define an object. +First, let's define a data structure. For this guide, we will use a simple chat message that contains a timestamp and text: ```js @@ -92,7 +92,7 @@ To encode and decode protobuf payloads, you can use the [protons](https://www.np ## Install Protobuf Library -First, install it: +First, install protons: ```shell npm install protons @@ -113,7 +113,7 @@ message SimpleChatMessage { `); ``` -You can learn about protobuf definitions here: +You can learn about protobuf message definitions here: [Protocol Buffers Language Guide](https://developers.google.com/protocol-buffers/docs/proto). ## Encode Messages