Compare commits
2 Commits
c2031b4c7f
...
85cc802977
Author | SHA1 | Date |
---|---|---|
Derrick Hammer | 85cc802977 | |
Derrick Hammer | eb65447adb |
|
@ -196,7 +196,7 @@ class MultiSocketProxy extends proxy_js_1.default {
|
||||||
const message = await peer.channel.addMessage({
|
const message = await peer.channel.addMessage({
|
||||||
encoding: writeSocketEncoding,
|
encoding: writeSocketEncoding,
|
||||||
onmessage(m) {
|
onmessage(m) {
|
||||||
self._sockets.get(m.id)?.push(m.data);
|
self._sockets.get(m.id)?.push(b4a_1.default.from(m.data));
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
this.update(await this._getPublicKey(peer), {
|
this.update(await this._getPublicKey(peer), {
|
||||||
|
|
|
@ -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