Skip to content
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

Add WebSocketUpgrader to channel config #340

Merged
merged 2 commits into from
Apr 19, 2018
Merged

Add WebSocketUpgrader to channel config #340

merged 2 commits into from
Apr 19, 2018

Conversation

helje5
Copy link
Contributor

@helje5 helje5 commented Apr 19, 2018

Motivation:

The NIOWebSocketServer demo works wayyy better, when it actually configures the WebSocketUpgrader.

Modifications:

This adds the upgrader to the HTTPUpgradeConfiguration.

Result:

The demo will actually perform something web-sockety.

P.S.

You should have a test for that!

Motivation:

The NIOWebSocketServer demo works much better, when it actually
configures the WebSocketUpgrader.

You should have a test for that!

Modifications:

This adds the `upgrader` to the `HTTPUpgradeConfiguration`.

Result:

The demo will actually perform something web-sockety.
@swift-nio-bot
Copy link

Can one of the admins verify this patch?

1 similar comment
@swift-nio-bot
Copy link

Can one of the admins verify this patch?

Copy link
Contributor

@Lukasa Lukasa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this does look fairly necessary!

@Lukasa Lukasa added the semver/patch No public API change. label Apr 19, 2018
@Lukasa Lukasa added this to the 1.5.1 milestone Apr 19, 2018
@Lukasa
Copy link
Contributor

Lukasa commented Apr 19, 2018

@swift-nio-bot test this please

@Lukasa Lukasa merged commit 17a2aae into apple:master Apr 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants