I got the error during websocket handshake. Firefox can't establish a connection to the server at ws://localhost:8082/FetchNotification/NewFile.htmlatpendpoint Is there anybody who got the same problem. I have refered the code from https://dzone.com/articles/wso2-products-resolving-err-ssl-weak-ephemeral-dh
2 Answers
1
votes
0
votes
the url you should be using for the function call
Echo.connect("ws://localhost:8082/FetchNotification/NewFile.html")
instead if you are using a variable like Echo.connect("ws://" + host + "/NewFile.html"), please ensure it is /FetchNotification/NewFile.html instead
Otherwise in the websocket Endpoint make sure that the above url is the one you are using for
ServerEndpointConfig.Builder.create(EchoEndpoint.class,"/FetchNotification/Newfile.html").build());