Connect NodeMCU to Java Websocket

Hello everyone, I would like to connect the NodeMCU esp12-E to my websocket which I created with a use of GlassFish server 4.1.1 and Java. I need the NodeMCU to send data to the server and receive data from the server but I don't know which library to use and need help with the code. I need that the NodeMCU will connect to this address and send data to it (This is the server's address):

"ws://192.168.1.106:8080/JavaSmartHome/serverendpointdemo"

Thanks for help!

This is the server's address

It is NOT. That might be how a client running on the same machine accesses the script, but the Arduino is NOT going to access that script using localhost as the server name.

PaulS: It is NOT. That might be how a client running on the same machine accesses the script, but the Arduino is NOT going to access that script using localhost as the server name.

So what I have to do in order to let everything work? And I changed the address above you!

And I changed the address above you!

To make me look like a fool? And, now you expect me to help you? Fat chance of that happening.