@reactoo/watchtogether-sdk-js 2.7.87 → 2.7.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactoo/watchtogether-sdk-js",
3
- "version": "2.7.87",
3
+ "version": "2.7.88",
4
4
  "description": "Javascript SDK for Reactoo",
5
5
  "main": "dist/watchtogether-sdk.min.js",
6
6
  "module": "dist/watchtogether-sdk.min.js",
@@ -232,6 +232,10 @@ class Iot {
232
232
  this.worker?.postMessage({ type: 'send', topic, message: msg });
233
233
  }
234
234
 
235
+ emitMessage(message) {
236
+ this.emit('message', message)
237
+ }
238
+
235
239
  handleWorkerMessage(event) {
236
240
  const { type, data, connectionId } = event.data;
237
241
  switch (type) {