3

I have implemented a websocket server using nanohttpd in java. I can access the websocket server from js in a web page. It works great.

However, now I'd like to create a java based client that will connect to the same server.

Does nanohttpd have a set of java classes to connect to the websocket server? In other words, the server is running in java but now I want a separate java client program to connect to it.

If so, what is the minimum java code to connect to the server?

If not, how would you suggest I connect to the websocket server in java?

Mark M
  • 1,807
  • 2
  • 21
  • 40

1 Answers1

2

There are plenty of third party Java Web Socket client implementations you can use. This is one of them.

shazin
  • 21,379
  • 3
  • 54
  • 71