@WebSocketHandlerService(path="/chat",
broadcaster=org.atmosphere.util.SimpleBroadcaster.class)
public class WebSocketChat
extends org.atmosphere.websocket.WebSocketHandlerAdapter
WebSocketHandler that implement the logic to build a Chat application.| Modifier and Type | Class and Description |
|---|---|
static class |
WebSocketChat.Data |
| Constructor and Description |
|---|
WebSocketChat() |
| Modifier and Type | Method and Description |
|---|---|
void |
onOpen(org.atmosphere.websocket.WebSocket webSocket) |
void |
onTextMessage(org.atmosphere.websocket.WebSocket webSocket,
String message) |
public void onOpen(org.atmosphere.websocket.WebSocket webSocket)
throws IOException
onOpen in interface org.atmosphere.websocket.WebSocketHandleronOpen in class org.atmosphere.websocket.WebSocketHandlerAdapterIOExceptionpublic void onTextMessage(org.atmosphere.websocket.WebSocket webSocket,
String message)
throws IOException
onTextMessage in interface org.atmosphere.websocket.WebSocketHandleronTextMessage in class org.atmosphere.websocket.WebSocketHandlerAdapterIOExceptionCopyright © 2014. All Rights Reserved.