The handler interface for receiving messages sent from sessions to the
server. This interface must be implemented by the user, to be registered via
Messages.addHandler.
A message handler has a lifecycle that reflects the registration state on the
server. This is expressed through the callback methods. Once onClose has been closed, no further interactions will
occur.
Messages received by a handler
contain the identity of the original sender.
deprecated
since 6.2
One-way messaging is deprecated in favor of request-response
messaging. See <a href="messages.html#sendrequest">sendRequest</a>
and <a href="messages.html#sendrequesttofilter"> sendRequestToFilter</a>. This interface will be removed ina future
release.
The handler interface for receiving messages sent from sessions to the server. This interface must be implemented by the user, to be registered via Messages.addHandler.
A message handler has a lifecycle that reflects the registration state on the server. This is expressed through the callback methods. Once onClose has been closed, no further interactions will occur.
Messages received by a handler contain the identity of the original sender.
since 6.2
One-way messaging is deprecated in favor of request-response messaging. See <a href="messages.html#sendrequest">sendRequest</a> and <a href="messages.html#sendrequesttofilter"> sendRequestToFilter</a>. This interface will be removed in a future release.