Skip to content
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

Allow to bind socket.io to bun built in server. #4969

Open
TomieAi opened this issue Mar 9, 2024 · 2 comments
Open

Allow to bind socket.io to bun built in server. #4969

TomieAi opened this issue Mar 9, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@TomieAi
Copy link

TomieAi commented Mar 9, 2024

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

@TomieAi TomieAi added the enhancement New feature or request label Mar 9, 2024
@darrachequesne
Copy link
Member

That's an interesting idea 👍 not sure how we can do this elegantly though.

Food for thoughts:

@TomieAi
Copy link
Author

TomieAi commented Mar 16, 2024

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

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

No branches or pull requests

2 participants