public interface SockJsService
| Modifier and Type | Method and Description |
|---|---|
SockJsConfig |
config()
The
SockJsConfig for this service |
void |
onClose()
Will be called when the session is closed.
|
void |
onMessage(String message)
Will be called when a message is sent to the service.
|
void |
onOpen(SockJsSessionContext session)
Will be called when a new session is opened.
|
SockJsConfig config()
SockJsConfig for this serviceSockJsConfig this services configuration.void onOpen(SockJsSessionContext session)
session - the SockJsSessionContext which can be stored and used for sending/closing.void onMessage(String message) throws Exception
message - the message sent from a client.Exceptionvoid onClose()
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.