-
Notifications
You must be signed in to change notification settings - Fork 24
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
Refactor - HTTPServer upgrade handler #88
Conversation
@@ -68,6 +68,8 @@ public class HTTPServer : Server { | |||
/// The event loop group on which the HTTP handler runs | |||
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: System.coreCount) | |||
|
|||
private var channelHandlerCtx: ChannelHandlerContext? |
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.
Considering SwiftNIO conventions, simply calling this ctx
may make sense?
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.
Yes :) calling ctx
looks good
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.
LGTM, just a small comment inline
@nethraravindran You may also want to run tests from the WebSocket NIO port locally, before we merge this. |
d100d81
to
3be6f16
Compare
Few WebSocket tests failed with #86 |
@pushkarnk Thanks! I have run WebSocket tests and all the tests are successful with this change 97772c6 |
Thanks! |
Refactored the code around
KituraWebSocketUpgrader
to improve readability