0

I just wrapped up learning Java through theory and tutorials, and now I want to solidify my understanding by building something real.

I’m currently working on a simple two-player arcade-style game with a small twist and need a lightweight WebSocket-based client-server architecture in Java. My frontend (HTML, CSS, JS) is almost done, but I’ve never implemented WebSockets before.

I initially looked into Spring Boot, but it feels too complex for my current experience level. I’d love suggestions on libraries, frameworks, or best practices to keep it simple and efficient.

If you've worked on something similar, I’d really appreciate any insights!

Cheers ❤️

asked Mar 9, 2025 at 5:09
5
  • Javalin or Vert.x Commented Mar 9, 2025 at 5:36
  • Java comes bundled with a WebSocket client. See java.net.http package, and JEP 321: HTTP Client API. Commented Mar 9, 2025 at 5:39
  • Nettosphere — A Java WebSocket and HTTP server powered by the Atmosphere Framework and the Netty Framework. Commented Mar 9, 2025 at 5:42
  • Eclipse WebSocket specifies the API that Java developers can use when they want to integrate WebSockets into their applications - both on the server side as well as on the Java client side. An implementation for the WebSocket API is provided by the Eclipse Tyrus project. And Apache Tomcat implements Jakarta WebSocket. Commented Mar 9, 2025 at 5:48
  • Oh yea ... and you should get out of the (bad) habit of asking for so called "best practices" - satisfice.com/blog/archives/5164. Basically, their ain't no such thing in the programming field, and anyone who says XYZ is "best practice" is being intellectually dishonest. Commented Mar 9, 2025 at 6:01

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.