Class ChatAppEndpoint
- java.lang.Object
-
- org.wso2.msf4j.sample.websocket.chatapp.ChatAppEndpoint
-
public class ChatAppEndpoint extends java.lang.ObjectThis is a Sample class for WebSocket. This provides a chat with multiple users.
-
-
Constructor Summary
Constructors Constructor Description ChatAppEndpoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonBinaryMessage(byte[] bytes, org.wso2.transport.http.netty.contract.websocket.WebSocketConnection webSocketConnection)voidonClose(java.lang.String name, javax.websocket.CloseReason closeReason, org.wso2.transport.http.netty.contract.websocket.WebSocketConnection webSocketConnection)voidonError(java.lang.Throwable throwable, org.wso2.transport.http.netty.contract.websocket.WebSocketConnection webSocketConnection)voidonOpen(java.lang.String name, org.wso2.transport.http.netty.contract.websocket.WebSocketConnection webSocketConnection)voidonTextMessage(java.lang.String name, java.lang.String text, org.wso2.transport.http.netty.contract.websocket.WebSocketConnection webSocketConnection)
-
-
-
Method Detail
-
onOpen
public void onOpen(java.lang.String name, org.wso2.transport.http.netty.contract.websocket.WebSocketConnection webSocketConnection)
-
onTextMessage
public void onTextMessage(java.lang.String name, java.lang.String text, org.wso2.transport.http.netty.contract.websocket.WebSocketConnection webSocketConnection) throws java.io.IOException- Throws:
java.io.IOException
-
onBinaryMessage
public void onBinaryMessage(byte[] bytes, org.wso2.transport.http.netty.contract.websocket.WebSocketConnection webSocketConnection)
-
onClose
public void onClose(java.lang.String name, javax.websocket.CloseReason closeReason, org.wso2.transport.http.netty.contract.websocket.WebSocketConnection webSocketConnection)
-
onError
public void onError(java.lang.Throwable throwable, org.wso2.transport.http.netty.contract.websocket.WebSocketConnection webSocketConnection)
-
-