@WebSocketHandlerService(path="/chat",
broadcaster=org.atmosphere.util.SimpleBroadcaster.class,
atmosphereConfig="org.atmosphere.websocket.WebSocketProtocol=org.atmosphere.websocket.protocol.StreamingHttpProtocol")
public class WebSocketChat
extends org.atmosphere.websocket.WebSocketStreamingHandlerAdapter
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 |
onTextStream(org.atmosphere.websocket.WebSocket webSocket,
Reader reader) |
public void onOpen(org.atmosphere.websocket.WebSocket webSocket)
throws IOException
onOpen in interface org.atmosphere.websocket.WebSocketHandleronOpen in class org.atmosphere.websocket.WebSocketStreamingHandlerAdapterIOExceptionpublic void onTextStream(org.atmosphere.websocket.WebSocket webSocket,
Reader reader)
throws IOException
onTextStream in interface org.atmosphere.websocket.WebSocketStreamingHandleronTextStream in class org.atmosphere.websocket.WebSocketStreamingHandlerAdapterIOExceptionCopyright © 2014. All Rights Reserved.