@panphora/clayjs 1.10.0 → 1.11.1

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.
@@ -147,7 +147,8 @@ export class SyncStream extends EventTarget {
147
147
  this._remember(event.data);
148
148
  this._emit('message', event.data);
149
149
  };
150
- for (const type of ['cursor', 'presence']) {
150
+ // `data`, `data-state` and `data-writer` are clay.live's fast lane (stream-bridge.js).
151
+ for (const type of ['cursor', 'presence', 'data', 'data-state', 'data-writer']) {
151
152
  source.addEventListener(type, event => {
152
153
  if (this._source === source) this._emit(type, event.data);
153
154
  });