*convert data to buffer
This commit is contained in:
parent
c2031b4c7f
commit
eb65447adb
|
@ -250,7 +250,7 @@ export default class MultiSocketProxy extends Proxy {
|
||||||
const message = await peer.channel.addMessage({
|
const message = await peer.channel.addMessage({
|
||||||
encoding: writeSocketEncoding,
|
encoding: writeSocketEncoding,
|
||||||
onmessage(m: WriteSocketRequest) {
|
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), {
|
this.update(await this._getPublicKey(peer), {
|
||||||
|
|
Loading…
Reference in New Issue