Reqwest: WebSocket support

Created on 26 Mar 2020  路  5Comments  路  Source: seanmonstar/reqwest

We love reqwest, but we also need to use websocket. :-)

Warp implements it at server-side, so it would be nice if reqwest could implement it at client-side allowing we to reuse all other features (e.g: TLS support) present in reqwest.

Cheers

Most helpful comment

Some cryptocurrency exchange provide websocket API!
ex.
https://docs.pro.coinbase.com/#websocket-feed
https://www.bitstamp.net/websocket/v2/
https://docs.kraken.com/websockets/

I'm using ws-rs, but it's not support async/await. It would be great if reqwest can support websocket!

All 5 comments

Curious, why would you use websockets outside a browser context?

Some cryptocurrency exchange provide websocket API!
ex.
https://docs.pro.coinbase.com/#websocket-feed
https://www.bitstamp.net/websocket/v2/
https://docs.kraken.com/websockets/

I'm using ws-rs, but it's not support async/await. It would be great if reqwest can support websocket!

Curious, why would you use websockets outside a browser context?

At the company, we are going to use websocket specially for sales terminal(s) monitoring, but there are many other features which websockets are useful outside a web browser, like real time gaming, embedded system remote control, industrial machine full-duplex communication via dedicated boards like STM32 and so on.

Another use-case, the Kubernetes API server exposes a bunch of streaming stuff (e.g exec, port-forward) over websockets.

Is there any plan for support WebSockets ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jeprojects picture jeprojects  路  3Comments

encombhat picture encombhat  路  6Comments

AmarOk1412 picture AmarOk1412  路  5Comments

dbrgn picture dbrgn  路  5Comments

29e7e280-0d1c-4bba-98fe-f7cd3ca7500a picture 29e7e280-0d1c-4bba-98fe-f7cd3ca7500a  路  6Comments