-
Notifications
You must be signed in to change notification settings - Fork 53
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
Websocket Transport #593
Websocket Transport #593
Conversation
472b352
to
6a71b20
Compare
Codecov Report
@@ Coverage Diff @@
## unstable #593 +/- ##
============================================
+ Coverage 81.96% 81.99% +0.02%
============================================
Files 59 60 +1
Lines 11579 11725 +146
============================================
+ Hits 9491 9614 +123
- Misses 2088 2111 +23
|
a0c627a
to
1cf1372
Compare
libp2p/transports/wstransport.nim
Outdated
|
||
try: | ||
let | ||
transp = await self.httpserver.accept() |
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.
Lots of potential to unify with tcp transport accept
, specially after we've enabled multiple address listening.
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.
Yep, when #598 will be more stable I'll rebase this PR on it and add the required changes :)
Never mind, they are there 👍 |
LGTM, besides the missing |
* start of websocket transport * more ws tests * switch to common test * add close to wsstream * update ws & chronicles version * cleanup * removed multicodec * clean ws outgoing connections * renamed to websock * removed stream from logs * renamed ws to websock * add connection closing test to common transport * close incoming connection on ws stop * renamed testwebsocket.nim -> testwstransport.nim * removed raise todo * split out/in connections * add wss to tests * Fix tls (#608) * change log level * fixed issue related to stopping some cosmetic cleanup * use `allFutures` to stop/close things Prevent potential race conditions when stopping two or more transports * misc * point websock to server-case-object branch * interop test with go * removed websock version specification * add daemon -> native ws test * fix & test closed read/write * update readOnce, thanks jangko Co-authored-by: Dmitriy Ryajov <dryajov@gmail.com>
closes #407
Full WIP
Edit: green ci!