Skip to content

Add embedded-io-async Framer #20

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

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

LimpidCrypto
Copy link

@LimpidCrypto LimpidCrypto commented Aug 14, 2024

Overview

This PR adds a Framer that uses the embedded_io_async::Write and embedded_io_async::Read traits instead of the futures::Sink and futures::Stream traits. It makes it easier to use the WebSocket with TcpStreams implementing the embedded_io_async traits, like the embassy_net::TcpSocket. The Framer is behind the embedded-io-async feature.

Tests

I added an example using the Framer with the tokio::net::TcpStream wrapped in embedded_io_adapters::FromTokio as it's pretty straight forward and demonstrates the functionality sufficiently.

Todo

  • Remove .devcontainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants