*add emulateWebsocket to proxy

This commit is contained in:
Derrick Hammer 2023-02-25 22:21:09 -05:00
parent 6b42c2400f
commit 68cd8008a6
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 8 additions and 1 deletions

View File

@ -22,12 +22,19 @@ export default class Proxy {
onclose,
listen = false,
autostart = false,
emulateWebsocket = false,
}: ProxyOptions) {
this._swarm = swarm;
this._protocol = protocol;
this._listen = listen;
this._autostart = autostart;
this._socketOptions = { onopen, onreceive, onsend, onclose };
this._socketOptions = {
onopen,
onreceive,
onsend,
onclose,
emulateWebsocket,
};
this.init();
}