java - Where does @serverendpoint path get mapped (Websockets) -


i have following @serverendpoint path websocket using spring framework:

@serverendpoint(value="/serverendpoint", configurator = springconfigurator.class) 
  1. my first question have website url www.example.com. serverendpoint path serverendpoint mapped? can access serverendpoint @ wss://example.com:$port/currentpage.html/serverendpoint? or wrong way.
  2. i have wildfly 10 server running. based on question, told use following uri: var wsuri = "wss://" + document.location.hostname + ":8443" + document.location.pathname + "/../serverendpoint";. however, when so, in google chrome, receive following error:

websocket in closing or closed state.

my console.log prints websocket has been connected, above error. doing wrong?

as per wildfly server log, know serverendpoint mapped:

[io.undertow.websockets.jsr] (serverservice thread pool -- 78) ut026003: adding annotated server endpoint class com.voice2.spring.web.controller.serverendpoint path /serverendpoint 

so how connect sever endpoint?

here project file hierarchy:

enter image description here


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -