Comments (2)
In ws-tool, proxy connection is completed in builder.build
method, it's a design trade off because I think handshake should perform websocket protocol handshake only, it should not care underlying transport. So, to reconnect binance wesocket, call builder.build
method(build does not consume builder, it's &self
) to generate new client, call hanshake
of new client and read message.
from ws-tool.
in my case, my Connection instance is wrapped in a Mutex so I can use it in two threads for sending pong opcode and read frames concurrently.
Yet I solved it by using mem::replace
and replacing the old connection.
if you dont think it is necessary to implement a reconnect
method. Just close the issue.
from ws-tool.
Related Issues (20)
- stream_mut for WsAsyncStream
- Easier api when server handling tls & add blocking tls server handling
- websocket over htth2 HOT 3
- None of the examples compile HOT 6
- InsufficientLen error HOT 7
- Payload size causes weird performance variance HOT 16
- permessage-deflate extension support HOT 3
- zmq like socket type support
- Do not compress/decompress large payload at once if fragment HOT 1
- Tokio tcpstream performance varies too much, need some tuning
- Add vendored libz feature for musl build
- Help wanted: Create Node.js Bindings
- Help wanted: Create Node.js Bindings HOT 1
- Load test is crashing on start HOT 3
- Bitget got 403 Forbidden HOT 4
- Support native tls
- Per message deflate extension performance issue and impl backend
- client send nul/zero byte array in 0.9 while 0.7 would not, it is a regression HOT 1
- Ntex/axum integration HOT 3
- 没有连接断开时,直接检测客户端的状态的api,以实现重新连接,这在其它语言中都是常见的 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ws-tool.