From 98c3aa54cc6c978411e5880c3d5c850cc9138c73 Mon Sep 17 00:00:00 2001 From: Davor Hrg Date: Tue, 12 Mar 2024 13:37:56 +0100 Subject: [PATCH] . --- packages/postmessage/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/postmessage/README.md b/packages/postmessage/README.md index 3884e27..ddc701e 100644 --- a/packages/postmessage/README.md +++ b/packages/postmessage/README.md @@ -6,7 +6,7 @@ Calling methods is handled with Promises because the postMessage is async by def If you use this utility both in your main thread and in the worker you will get the most benefits. -Consider these steps depending on the complexity +Consider these steps depending on the complexity: 1. **postMessage**: if you have only few messages pushing some data, you do not even need this 2. **RPC:** if you have messages, and some of them are response to a request(functionally) you should try formalizing a protocol and this RPC here can be a good starting point