*convert data to buffer

This commit is contained in:
Derrick Hammer 2023-04-16 19:00:33 -04:00
parent c2031b4c7f
commit eb65447adb
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -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), {