Skip to content

How to use mio with ratchet ? #64

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
beanqi opened this issue Jun 4, 2025 · 0 comments
Open

How to use mio with ratchet ? #64

beanqi opened this issue Jun 4, 2025 · 0 comments

Comments

@beanqi
Copy link

beanqi commented Jun 4, 2025

I'm currently exploring the possibility of integrating ratchet with mio directly, as I'm working in an environment where I'd prefer to avoid pulling in tokio as a dependency.

I was wondering if you could provide some guidance or point me in the right direction on how one might approach this. Specifically, I'm trying to understand:

  • Connection Establishment: What would be the general approach to establish a WebSocket(with tls) connection using ratchet when the underlying I/O is managed by mio?
  • Splitting Reader/Writer: Once a connection is established, how could I effectively split the stream into a reader and a writer half that can be independently managed within a mio-based event loop?
    Are there any existing examples, or perhaps could you outline the general steps or challenges involved in such an integration?
    Any pointers or high-level ideas would be greatly appreciated.
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

No branches or pull requests

1 participant