-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update ParseWebSocketServer.js #5860
Conversation
fix wss:// error by requiring 'ws' module, remove uws as it has been deprecated and removed from npm
I've been thinking about this for a while. I sure you know why this package was removed from npm and the drama behind it. Deprecation doesn't mean we can't use it. I propose a few options: Migrate to uWebSocket.js Its not a direct 1-1 transition because a wrapper would need to be implemented. This package is a rewrite of Add wsModule option to server config
Allow users to implement there own WS Adapters There are many Websocket packages like socket.io that can be used as a substitute for Debug your issue / check your configuration
You can build this maintained fork and compare your .node bindings
Remove it entirely The JS-SDK doesn't use @GoGross @TomWFox @davimacedo @acinader Thoughts? |
Codecov Report
@@ Coverage Diff @@
## master #5860 +/- ##
==========================================
- Coverage 93.68% 93.65% -0.03%
==========================================
Files 150 150
Lines 10616 10614 -2
==========================================
- Hits 9946 9941 -5
- Misses 670 673 +3
Continue to review full report at Codecov.
|
@dplewis how about removing it entirely and as you mentioned above, allow WS Adapters which would be awesome. |
I updated your PR. I also added swappable WebSocketController to the JS-SDK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for getting started on this. I'll work on the Adapter.
@dplewis I've just seen the thread and I think you guys took a good approach. Let me know if you need any help with the adapter. |
Thanks guys! This solved a big issue with live queries in my app, when device goes offline then back online. It wouldnt resusbscribe the live query because of the "dead" connection when going offline. With this update, dead connections dont interfere with the new one when network is back. |
* Update ParseWebSocketServer.js fix wss:// error by requiring 'ws' module, remove uws as it has been deprecated and removed from npm * Update ParseWebSocketServer.js * remove uws
fix wss:// error by requiring 'ws' module, remove uws as it has been deprecated and removed from npm
See: #5347