rama icon indicating copy to clipboard operation
rama copied to clipboard

support socket.io as new crate rama-socket-io

Open GlenDC opened this issue 9 months ago • 3 comments

Work with and build on top of https://github.com/Totodore/socketioxide, or in worst case this is not possible,learn from it.

Low priority,and blocked until we have ws support .

GlenDC avatar Mar 12 '25 11:03 GlenDC

Hey! Don't hesitate to tag me if you need any help regarding socketioxide integration!

Totodore avatar May 25 '25 22:05 Totodore

@Totodore thanks a lot for reaching out! How did you even find out about this? :D

Anyway, it's not yet for immediate, as I first still need to develop rama-ws.

Whether i can use socketioxide (which I hope I can) will depend mostly on whether all the protocol/foundational stuff is sans-io, ideally in a separate protocol / core crate. Because rama comes with its own web stack (tcp/udp/http/tls/ws). So I cannot have it that users of rama wishing to use socketioxide also have to pull in an entire other stack just to benefit from socket.io integration.

I can help make that happen if that's not yet the case, but it would require some planning on your end. Or perhaps it already is possible and in that case awesome. Or perhaps that is not yet the case and neither do you want that @Totodore which is also fine but at that point I probably need to either fork socketioxide or if required start from scratch. In case of the latter I'll push this issue however a lot further back on the roadmap as I do not have actual requests received yet for socket.io integration, so in that case it wouldn't be worth it (yet).

GlenDC avatar May 26 '25 15:05 GlenDC

That's an interesting requirement, currently socketioxide is definitely not sans-io. It's based on hyper and tokio-tungstenite. I'm not sure if this would be a project goal for socketioxide.

However I also started work on a sans-io version in C (only for fun) so I have quite an idea of the implications of this.

In any case you are right this is heavy work and it would be worth it only if there is some demand.

Totodore avatar May 26 '25 21:05 Totodore