org.atmosphere.samples.chat
Class WebSocketChat
java.lang.Object
org.atmosphere.websocket.WebSocketHandler
org.atmosphere.samples.chat.WebSocketChat
- All Implemented Interfaces:
- WebSocketProtocol
@WebSocketHandlerService
public class WebSocketChat
- extends WebSocketHandler
Simple WebSocketHandler that implement the logic to build a Chat application.
- Author:
- Jeanfrancois Arcand
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebSocketChat
public WebSocketChat()
onOpen
public void onOpen(WebSocket webSocket)
- Specified by:
onOpen in interface WebSocketProtocol- Overrides:
onOpen in class WebSocketHandler
onTextMessage
public void onTextMessage(WebSocket webSocket,
String message)
- Overrides:
onTextMessage in class WebSocketHandler
Copyright © 2012. All Rights Reserved.