Skip to content

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

Merged
merged 3 commits into from
Jan 14, 2017
Merged

use uWS as optional dependency for ws server #3231

merged 3 commits into from
Jan 14, 2017

Conversation

flovilmart
Copy link
Contributor

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.

var parseWebSocketServer = new ParseWebSocketServer({}, onConnectCallback, 5).server;
var http = require('http');
var server = http.createServer();
var parseWebSocketServer = new ParseWebSocketServer(server, onConnectCallback, 5).server;
Copy link
Contributor Author

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.

Copy link
Contributor

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...

Copy link
Contributor

@acinader acinader left a 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 */
Copy link
Contributor

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?

@acinader
Copy link
Contributor

acinader commented Jan 7, 2017

oh, and sweet.

@facebook-github-bot
Copy link

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?

@facebook-github-bot
Copy link

@flovilmart updated the pull request - view changes

@facebook-github-bot
Copy link

@flovilmart updated the pull request - view changes

@flovilmart
Copy link
Contributor Author

@acinader addressed the nits

@acinader acinader merged commit c26db22 into master Jan 14, 2017
@flovilmart flovilmart deleted the uws-support branch May 13, 2017 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants