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

Websocket support #10

Open
jjzazuet opened this issue Jan 8, 2020 · 2 comments
Open

Websocket support #10

jjzazuet opened this issue Jan 8, 2020 · 2 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@jjzazuet
Copy link
Contributor

jjzazuet commented Jan 8, 2020

Hi, this looks like a nice alternative to a lot of bloated Java web frameworks, which is awesome.

I'm browsing through the source code, and it looks like the core implementation relies on the JDK's built-in http server code base com.sun.net.httpserver. Is it possible to either configure Websocket support via java-express? Or can that be achieved by talking to the HttpServer jdk implementation directly?

Thanks!

@simonwep
Copy link
Owner

simonwep commented Jan 9, 2020

java-express is only made for the purpose as http-server, but I can recommend this implementation of the WebSocket protocol, super easy to use :)

@simonwep simonwep added the question Further information is requested label Jan 9, 2020
@jjzazuet
Copy link
Contributor Author

jjzazuet commented Jan 9, 2020

That WSS library looks nice, thanks!

Quick follow up, looking into the source of Java-WebSocket, it also wants to bind to a target InetSocketAddress to serve connection requests. Would you have any thoughts or suggestions on how to coordinate (glue code) between java-express and Java-WebSocket so that websocket connections can be established on a single bound port?

Thanks again!

@jjzazuet jjzazuet added the enhancement New feature or request label Sep 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants