Allow to bind socket.io to bun built in server.
Is your feature request related to a problem? Please describe. so I can use 1 port instead of two port separate. cant use uwebsocket.js due to bun already using it under the hood. it wont compile. and yes im aware that socket.io uses built in ws.. which is bun ws.. that is uwebsocket under the hood. but im only here for one port solution.
Describe the solution you'd like
i dont know io.attachApp(bun here XD);
Describe alternatives you've considered nothing really i dont know how it works.. but you guys bind the uwebsocket server it might be same as bun too.. since it uses uwebsocket under the hood. all i need is so bun server and socket io has same port.
Additional context nothing
That's an interesting idea :+1: not sure how we can do this elegantly though.
Food for thoughts:
- for the uWebSockets.js integration, we have created a new low-level server in the
engine.iorepository: https://github.com/socketio/engine.io/blob/main/lib/userver.ts - for the Deno integration, we have created a whole new repository: https://github.com/socketio/socket.io-deno
will be nice if you guys expose it like a custom parser you guys had, but for a server. so we can easily intergrade it on anything. that has server express type like syntax.
we have to expose those needed .get, .any etc endpoints and those needed ws endpoints. open , message etc.
quite like custom parser does processing message that come and go.
will be nice to finally use elysiajs(bun server/ws wrapper) with socket io compatible xD
The current Deno solution is missing very useful features due to not being updated for 2 years. It would be very nice to have Deno/Bun/Winter etc engines/parsers to "attach" that don't need as much updating every time a new feature is added to the protocol/client. Maybe not a 4.x solution, but hope you all keep it in mind for 5.x. Company I work for is interested in the performance benefits of getting off Nodejs, but socket.io not having acks and connection recovery for Deno is currently a road block.
Hi, need for a solution (Bun + Hono + Socket.IO). Thanks @TomieAi.
It would be very nice to have Deno/Bun/Winter etc engines/parsers to "attach" that don't need as much updating every time a new feature is added to the protocol/client.
That's indeed on our to-do list. We'll keep you updated!
May I ask if there any progress in support for bun? Thank you.
Any progress?
Any update on this?
hmm it seem no progress yet :'(
If it's useful to anyone, I've created a socket.io implementation for Bun with full support for socket.io-client. https://github.com/phederal/socket.io-bun
If it's useful to anyone, I've created a socket.io implementation for Bun with full support for socket.io-client. https://github.com/phederal/socket.io-bun
you are goat leys gooo <3 thanks you