Answer the question
In order to leave comments, you need to log in
How *easy* to make a WebSocket client in Java?
Good afternoon.
There is a certain web server with which my java application needs to "talk" via the WebSocket protocol. To my surprise, I did not find a simple way (I did not find any). I do not want to write the implementation myself, although it is simple.
I would like a solution as simple as possible:
new URL("ws://echo.websocket.org").openConnection()
Answer the question
In order to leave comments, you need to log in
And using the standard javax.websocket API isn't that easy?
Here is an example.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question