fix: Limit ws payload size

This commit is contained in:
Tom Moor
2022-08-16 10:27:55 +02:00
parent cfa7ecd7f8
commit ed8176ca7d
3 changed files with 6 additions and 1 deletions

View File

@@ -139,6 +139,9 @@ function MultiplayerEditor({ onSynced, ...props }: Props, ref: any) {
});
if (debug) {
provider.on("close", (ev: MessageEvent) =>
Logger.debug("collaboration", "close", ev)
);
provider.on("message", (ev: MessageEvent) =>
Logger.debug("collaboration", "incoming", {
message: ev.message,