Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
hrgdavor committed Mar 12, 2024
1 parent c2b24f3 commit 98c3aa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/postmessage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 98c3aa5

Please sign in to comment.