Totodore / socketioxide

A socket.io server implementation in Rust that integrates with the Tower ecosystem and the Tokio stack.
https://docs.rs/socketioxide
MIT License
1.2k stars 50 forks source link

How to use with rocket framework #175

Open learncodingforweb opened 9 months ago

learncodingforweb commented 9 months ago

Is your feature request related to a problem? Please describe. unable to use socketio with rocket server.How to use socketio with rocket server?

Describe the solution you'd like provide example code to use socketio with rocket server.

Describe alternatives you've considered Unable to find any alternative.

tausifcreates commented 9 months ago

Currently, Socketioxide works with hyper & hyper based web servers like Axum, Warp, Salvo etc. So I would recommend you to use them for working with socketioxide.

Totodore commented 9 months ago

I might work on an adapter based on the answers on this thread: https://github.com/rwf2/Rocket/discussions/2650

Totodore commented 9 months ago

I might work on an adapter based on the answers on this thread: rwf2/Rocket#2650

According to the answer of rocket's maintainer, we are going to wait for the release of rocket 0.6. When rocket will support tower layers. We will add a corresponding example.