javax.websocket client simple example
Asked 07 September, 2021
Viewed 762 times
  • 54
Votes

Can someone please provide me very simple example of websocket client using javax.websocket?

I want to connect to websocket (ws://socket.example.com:1234), send message (add channel) and listen to messages. All messages (sent & listened) are in JSON format.

And btw is this library the best for simple websocket communication?

6 Answer