You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by 王琳 <be...@163.com> on 2017/06/08 01:05:26 UTC

A question about websocket API-- Annotation ServerEndpoint

Hi friend:
 i have a question. use Tomcat 8.5.15
@ServerEndpoint API has 'value' summary. This value mapping url.When the url has parameter,use {}.
for example:
@ServerEndpoint(value = "/websocket/fmsWebsocket/{userId}/{companyId}/{groupId}")

js:var url = "ws://192.168.0.6:8080/note/websocket/fmsWebsocket/1/1/1";

My question is when {userId} is null or {companyId} is null or {groupId} is null . How  write @ ServerEndpoint(value=??????).
and
js: var url = "ws://192.168.0.6:8080/note/websocket/fmsWebsocket///1";
is right?

Thank you very much!

Re: A question about websocket API-- Annotation ServerEndpoint

Posted by km...@gmail.com.
Fictdyhcu

Envoyé de mon smartphone BlackBerry 10.
  Message d'origine  
De: 王琳
Envoyé: vendredi 9 juin 2017 01:37
À: users@tomcat.apache.org
Répondre à: Tomcat Users List
Objet: Re: A question about websocket API-- Annotation ServerEndpoint

Thank you



--
View this message in context: http://tomcat.10.x6.nabble.com/A-question-about-websocket-API-Annotation-ServerEndpoint-tp5064163p5064200.html
Sent from the Tomcat - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: A question about websocket API-- Annotation ServerEndpoint

Posted by km...@gmail.com.
Fifgfdyfyi

Envoyé de mon smartphone BlackBerry 10.
  Message d'origine  
De: 王琳
Envoyé: vendredi 9 juin 2017 01:37
À: users@tomcat.apache.org
Répondre à: Tomcat Users List
Objet: Re: A question about websocket API-- Annotation ServerEndpoint

Thank you



--
View this message in context: http://tomcat.10.x6.nabble.com/A-question-about-websocket-API-Annotation-ServerEndpoint-tp5064163p5064200.html
Sent from the Tomcat - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: A question about websocket API-- Annotation ServerEndpoint

Posted by 王琳 <be...@163.com>.
Thank you



--
View this message in context: http://tomcat.10.x6.nabble.com/A-question-about-websocket-API-Annotation-ServerEndpoint-tp5064163p5064200.html
Sent from the Tomcat - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org