Package | Description |
---|---|
act.inject |
The package is all about Dependency Injections
|
act.ws | |
act.xio |
Modifier and Type | Field and Description |
---|---|
static javax.inject.Provider<WebSocketContext> |
ActProviders.WEB_SOCKET_CONTEXT |
Modifier and Type | Method and Description |
---|---|
WebSocketContext |
WebSocketContext.accept(org.osgl.http.H.Format fmt) |
static WebSocketContext |
WebSocketContext.current() |
WebSocketContext |
WebSocketContext.messageReceived(java.lang.String receivedMessage)
Called when remote end send a message to this connection
|
WebSocketContext |
WebSocketContext.sendJsonToPeers(java.lang.Object data)
Send JSON representation of a data object to all connections connected to the same URL of this context with the connection of this context excluded
|
WebSocketContext |
WebSocketContext.sendJsonToPeers(java.lang.Object data,
boolean excludeSelf)
Send JSON representation of a data object to all connections connected to the same URL of this context with the connection of this context excluded
|
WebSocketContext |
WebSocketContext.sendJsonToSelf(java.lang.Object data)
Send JSON representation of a data object to the connection of this context
|
WebSocketContext |
WebSocketContext.sendJsonToTagged(java.lang.Object data,
java.lang.String tag)
Send JSON representation of a data object to all connections connected to the same URL of this context with the connection of this context excluded
|
WebSocketContext |
WebSocketContext.sendJsonToTagged(java.lang.Object data,
java.lang.String tag,
boolean excludeSelf)
Send JSON representation of a data object to all connections connected to the same URL of this context with the connection of this context excluded
|
WebSocketContext |
WebSocketContext.sendJsonToUser(java.lang.Object data,
java.lang.String username)
Send JSON representation of a data object to all connections of a certain user
|
WebSocketContext |
WebSocketContext.sendToPeers(java.lang.String message)
Send message to all connections connected to the same URL of this context with the connection of this context excluded
|
WebSocketContext |
WebSocketContext.sendToPeers(java.lang.String message,
boolean excludeSelf)
Send message to all connections connected to the same URL of this context
|
WebSocketContext |
WebSocketContext.sendToSelf(java.lang.String message)
Send a message to the connection of this context
|
WebSocketContext |
WebSocketContext.sendToTagged(java.lang.String message,
java.lang.String tag)
Send message to all connections labeled with tag specified with self connection excluded
|
WebSocketContext |
WebSocketContext.sendToTagged(java.lang.String message,
java.lang.String tag,
boolean excludeSelf)
Send message to all connections labeled with tag specified.
|
WebSocketContext |
WebSocketContext.sendToUser(java.lang.String message,
java.lang.String username)
Send message to all connections of a certain user
|
WebSocketContext |
WebSocketContext.tag(java.lang.String label)
Tag the websocket connection hold by this context with label specified
|
Modifier and Type | Method and Description |
---|---|
static void |
WebSocketContext.current(WebSocketContext ctx) |
Constructor and Description |
---|
WebSocketCloseEvent(WebSocketContext context) |
WebSocketConnectEvent(WebSocketContext context) |
WebSocketEventBase(WebSocketContext context) |
Modifier and Type | Method and Description |
---|---|
protected void |
WebSocketConnectionHandler.invoke(WebSocketContext context) |
Copyright © 2014–2017 ActFramework. All rights reserved.