Comments (5)
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.
from nativescript-websockets.
And while doing so, I successfully connected to the server, but could not continue to work with it
from nativescript-websockets.
This should be fixed in v2.02.
from nativescript-websockets.
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});
from nativescript-websockets.
That is interesting. I'll do an update.
from nativescript-websockets.
Related Issues (20)
- Error SLF4J HOT 2
- Advanced Interface in angular nativescript not working HOT 1
- [iOS/NS8/NG11] Module parse failed: 'return' outside of function HOT 2
- truncates returned bytes using iOS 13 HOT 3
- Support send callback HOT 1
- Cannot open web socket for Android HOT 3
- Exception error when device go to offline and disconnect from server HOT 1
- Cannot build app for Android: "Execution failed for task ':app:checkDebugDuplicateClasses'."
- Exception Crash on using on IOS - PSWebSocketDelegate HOT 9
- source websocket.jar HOT 3
- Connection still open after NS rebuild HOT 1
- WebSocket closing after 1 minute, regardless of timeout setting HOT 4
- Compatible with NativeScript 7 and iOS 14? HOT 3
- > Awesome -- I'll try and test this today! (Replace PocketSocket with iOS native websockets) HOT 2
- Getting 1006 code on iOS HOT 1
- NS8 Angular 12 TypeError: wrapper._notify is not a function HOT 2
- Warnings about missing `org.slf4j.impl.StaticLoggerBinder` HOT 2
- Module not found: Error: Can't resolve './websockets-base' for "@master.technology/websockets" HOT 15
- events are undefined in angular 12 & 13 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nativescript-websockets.