You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To pass an awc stream to actix_web_actors::ws::start, you need to bridge the gap between the awc WebSocket client's frame-based protocol and the actix_web_actors::ws module's expectations.
Capture Frames from awc: As you've done, capture the frames from the awc WebSocket connection.
Convert Frames to Bytes: Manually convert each frame into bytes. This involves encoding the frame according to the WebSocket protocol, which typically uses base64 encoding for binary data.
Pass Bytes to actix_web_actors::ws::start: Pass the converted bytes to actix_web_actors::ws::start.
Hi
How I can pass awc stream to actix_web_actors::ws::start?
It's expected Result<Bytes, PayloadError> but framed is Result<Frame, ...>
Your Environment
rustc -V
):1.76.0The text was updated successfully, but these errors were encountered: