*add emulateWebsocket to proxy
This commit is contained in:
parent
6b42c2400f
commit
68cd8008a6
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue