javascript - How to define Spring WebSocket subscriber path -


i want know how define subscriber path.

for instance, declaration of subscribing path

    stompclient.subscribe("/topic/simplemessagesresponse", function(servermessage) { 

why there 2 parts 'topic' , 'simplemessageresponse' .. refere. how many such domain parts can there , why ? question on not client side, server side . simpmessagingtemplate.convertandsend("/topic/simplemessagesresponse", "message client");

there tutorials showing websocket server , client samples. no enough details of rules declare subscriber path , how subscriber path found.

what dependencies change path when declared in server , client side. think similar question raised because of location change of page websocket client written.

quoting stomp spec documentation:

note stomp treats destination opaque string , no delivery semantics assumed name of destination. should consult stomp server's documentation find out how construct destination name gives delivery semantics application needs.

that means destination semantics broker specific:


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -