Improve triggers

This commit is contained in:
2025-04-23 03:37:26 +02:00
parent e5dcbe223d
commit 79ec4ce6ef
4 changed files with 311 additions and 73 deletions
+2 -1
View File
@@ -133,7 +133,8 @@ export class MudConnection extends EventEmitter {
// Binary data
this.handleIncomingData(new Uint8Array(event.data));
} else if (typeof event.data === 'string') {
// Text data
// Text data - let listeners process it directly
// TriggerSystem will handle gagging and replacing in the component
this.emit('received', event.data);
} else if (event.data instanceof Blob) {
// Blob data (sometimes WebSockets send this instead of ArrayBuffer)