*add emulateWebsocket to proxy
This commit is contained in:
parent
6b42c2400f
commit
68cd8008a6
|
@ -22,12 +22,19 @@ export default class Proxy {
|
||||||
onclose,
|
onclose,
|
||||||
listen = false,
|
listen = false,
|
||||||
autostart = false,
|
autostart = false,
|
||||||
|
emulateWebsocket = false,
|
||||||
}: ProxyOptions) {
|
}: ProxyOptions) {
|
||||||
this._swarm = swarm;
|
this._swarm = swarm;
|
||||||
this._protocol = protocol;
|
this._protocol = protocol;
|
||||||
this._listen = listen;
|
this._listen = listen;
|
||||||
this._autostart = autostart;
|
this._autostart = autostart;
|
||||||
this._socketOptions = { onopen, onreceive, onsend, onclose };
|
this._socketOptions = {
|
||||||
|
onopen,
|
||||||
|
onreceive,
|
||||||
|
onsend,
|
||||||
|
onclose,
|
||||||
|
emulateWebsocket,
|
||||||
|
};
|
||||||
this.init();
|
this.init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue