improved
π JS SDK v1.0.2: Shared port messaging
almost 2 years ago by Inessa M
Release date: 09 January, 2023
What's new
π Improvements
We have updated the communication between WASM worklets and workers from using individual message passing to using a shared port. This change provides the following benefits:
- Improved performance: By using a shared port, messages can be sent and received more efficiently, resulting in improved overall performance.
- Simplified code: The need for individual message handlers and postMessage calls is eliminated, making the code more readable and easier to maintain.
- Enhanced security: Shared port messaging is better suited to handle secure communication, as it provides a more secure communication channel.