@WebSocket(maxTextMessageSize=1048576) public class WebsocketApi.SimpleSocket extends Object implements WebsocketApi.Socket
| Constructor and Description |
|---|
SimpleSocket() |
protected static final String heartbeat
public void close()
close in interface WebsocketApi.Socket@OnWebSocketClose
public void onClose(int statusCode,
String reason)
public void send(String message) throws FlowthingsException
send in interface WebsocketApi.SocketFlowthingsExceptionpublic void join()
throws InterruptedException
join in interface WebsocketApi.SocketInterruptedException@OnWebSocketConnect public void onConnect(org.eclipse.jetty.websocket.api.Session session)
@OnWebSocketMessage public void onMessage(String msg)
Copyright © 2016. All rights reserved.