-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
use uWS as optional dependency for ws server #3231
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
Conversation
var parseWebSocketServer = new ParseWebSocketServer({}, onConnectCallback, 5).server; | ||
var http = require('http'); | ||
var server = http.createServer(); | ||
var parseWebSocketServer = new ParseWebSocketServer(server, onConnectCallback, 5).server; |
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.
needed to add that as the uWS implementation call .on
when the server is created.
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.
Hi @flovilmart i noticed that uws was not part of the latest release...
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.
also needs a rebase?
@@ -1,12 +1,20 @@ | |||
import logger from '../logger'; | |||
|
|||
/* eslint-disable */ |
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.
what are you disabling?
is it just the next line? if so, use:
// eslint-disable-next-line foo
otherwise, reenable where it makes sense
also put the specific rule you're trying to turn off?
oh, and sweet. |
It's been a while since the last commit was reviewed and the labels show this pull request needs review. Based on the blame information for the files in this pull request we identified @greenkeeperio-bot as a potential reviewer. Could you take a look please or cc someone with more context? |
@flovilmart updated the pull request - view changes |
@flovilmart updated the pull request - view changes |
@acinader addressed the nits |
As per #3221, uWS is a highly optimized web socket server, that outperforms many other implementations.
The uWS server is an optional dependency so if it can't build, this will fallback to original ws implementation.