public interface WebSocketService
WebServer
, then requests to that server
that match the relative path set by the setEndpoint(WebSocketEndpoint)
method of this interface will be delegated to that actor or attribute.
Modifier and Type | Method and Description |
---|---|
java.net.URI |
getRelativePath()
Get the URI associated with this service.
|
boolean |
isClient()
Return true if the service is acting as a client; false if the service
is acting as part of the server.
|
void |
onMessage(java.lang.String message)
Notify service of a WebSocket message event.
|
void |
setEndpoint(WebSocketEndpoint endpoint)
Set the endpoint responsible for this service's communication.
|
java.net.URI getRelativePath()
boolean isClient()
void onMessage(java.lang.String message)
message
- The message that was receivedvoid setEndpoint(WebSocketEndpoint endpoint)
endpoint
- The endpoint.