Closed lapaliv closed 2 years ago
And while doing so, I successfully connected to the server, but could not continue to work with it
This should be fixed in v2.02.
This error still occurs with v2.0.2 when using the browser based method.
In the BrowserWebSockets
class, if you comment out the line, then it works as expected (unless doing this breaks something else).
Object.defineProperty(this, "_notify", {enumerable: false});
This seems to make the NativeWebSockets
class it extends not have reference to the function.
If the intent is to not have the property enumerable, then to correctly modify the property I believe we would want this instead
Object.defineProperty(this, "_notify", {enumerable: false, value: this._notify});
That is interesting. I'll do an update.
I've just removed all the "function/property" hiding code, let me know if you have any other issues in 2.03. Technically the defineproperty code should work in a class constructor, but must have some weird issue with _notify
being also in the superclass. In all reality as I was already debating stripping that code in the ES6 rewrite since it is mainly pointless.
Hello. I have an error when I am trying to use your library. I am using:
The code:
And the error:
I added
console.log
before 42 line:and got it:
Thank you!