From d94eec7c7eab4ab96e97c3748ae9e35863f3c801 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 25 Feb 2023 22:21:39 -0500 Subject: [PATCH] *update dist --- dist/proxy.d.ts | 2 +- dist/proxy.js | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/dist/proxy.d.ts b/dist/proxy.d.ts index 3d85a7c..a3f62dc 100644 --- a/dist/proxy.d.ts +++ b/dist/proxy.d.ts @@ -9,7 +9,7 @@ export default class Proxy { private _listen; private _socketOptions; private _autostart; - constructor({ swarm, protocol, onopen, onreceive, onsend, onclose, listen, autostart, }: ProxyOptions); + constructor({ swarm, protocol, onopen, onreceive, onsend, onclose, listen, autostart, emulateWebsocket, }: ProxyOptions); private _swarm; get swarm(): any; private _protocol; diff --git a/dist/proxy.js b/dist/proxy.js index 5ceb02e..8be98fa 100644 --- a/dist/proxy.js +++ b/dist/proxy.js @@ -9,12 +9,18 @@ class Proxy { _listen; _socketOptions; _autostart; - constructor({ swarm, protocol, onopen, onreceive, onsend, onclose, listen = false, autostart = false, }) { + constructor({ swarm, protocol, onopen, onreceive, onsend, onclose, listen = false, autostart = false, emulateWebsocket = false, }) { 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(); } _swarm;