diff --git a/src/proxy.ts b/src/proxy.ts index 22d117d..9d46048 100644 --- a/src/proxy.ts +++ b/src/proxy.ts @@ -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(); }