Create a stand-alone Java websocket client endpoint?

I want to create a websocket endpoint client in Java (as pure as possible, no framework), but almost all the examples I find are only the server endpoint in Java, and the client is in JavaScript Can anyone point out an example of a good customer or provide one?

Solution

I'm not sure if this fits your standard, but jetty has a very clean client example here:

http://www.eclipse.org/jetty/documentation/current/jetty-websocket-client-api.html

Hope to help:)

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>