summaryrefslogtreecommitdiff
path: root/src/client/scripts/stream.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/scripts/stream.ts')
-rw-r--r--src/client/scripts/stream.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/scripts/stream.ts b/src/client/scripts/stream.ts
index 4dcd3f1b2e..8a525ba002 100644
--- a/src/client/scripts/stream.ts
+++ b/src/client/scripts/stream.ts
@@ -112,10 +112,10 @@ export default class Stream extends EventEmitter {
}
for (const c of connections.filter(c => c != null)) {
- c.emit(body.type, body.body);
+ c.emit(body.type, Object.freeze(body.body));
}
} else {
- this.emit(type, body);
+ this.emit(type, Object.freeze(body));
}
}