P
P
pqgg7nwkd42016-09-30 21:11:19
Java
pqgg7nwkd4, 2016-09-30 21:11:19

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()

I also don’t want to install frameworks, giant libraries.
Advise, please, something simple.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ruslan Lopatin, 2016-10-01
@lorus

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 question

Ask a Question

731 491 924 answers to any question