From eb65447adb67f82f8a7f514c44f48000725fe9f3 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 16 Apr 2023 19:00:33 -0400 Subject: [PATCH] *convert data to buffer --- src/proxies/multiSocket.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proxies/multiSocket.ts b/src/proxies/multiSocket.ts index d98ca6e..d5c40b8 100644 --- a/src/proxies/multiSocket.ts +++ b/src/proxies/multiSocket.ts @@ -250,7 +250,7 @@ export default class MultiSocketProxy extends Proxy { const message = await peer.channel.addMessage({ encoding: writeSocketEncoding, onmessage(m: WriteSocketRequest) { - self._sockets.get(m.id)?.push(m.data); + self._sockets.get(m.id)?.push(b4a.from(m.data)); }, }); this.update(await this._getPublicKey(peer), {