Package io.appbase.client
Class AppbaseWebsocketClient
- java.lang.Object
-
- org.java_websocket.WebSocketAdapter
-
- org.java_websocket.client.WebSocketClient
-
- io.appbase.client.AppbaseWebsocketClient
-
- All Implemented Interfaces:
Runnable,org.java_websocket.WebSocketListener
public class AppbaseWebsocketClient extends org.java_websocket.client.WebSocketClient
-
-
Constructor Summary
Constructors Constructor Description AppbaseWebsocketClient(URI serverURI, Stream on)AppbaseWebsocketClient(URI serverUri, Stream on, org.java_websocket.drafts.Draft draft)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonClose(int code, String reason, boolean remote)Implements the method stated inStreamobject passed in the Constructor.voidonError(Exception ex)Implements the method stated inStreamobject passed in the Constructor.voidonMessage(String message)Implements the method stated inStreamobject passed in the Constructor.voidonOpen(org.java_websocket.handshake.ServerHandshake handshakedata)Implements the method stated inStreamobject passed in the Constructor.-
Methods inherited from class org.java_websocket.client.WebSocketClient
close, closeBlocking, connect, connectBlocking, createProxyChannel, getConnection, getDraft, getLocalSocketAddress, getReadyState, getRemoteSocketAddress, getURI, getWebSocketFactory, onCloseInitiated, onClosing, onMessage, onWebsocketClose, onWebsocketCloseInitiated, onWebsocketClosing, onWebsocketError, onWebsocketMessage, onWebsocketMessage, onWebsocketOpen, onWriteDemand, run, send, send, setProxy, setWebSocketFactory
-
-
-
-
Method Detail
-
onOpen
public void onOpen(org.java_websocket.handshake.ServerHandshake handshakedata)
Implements the method stated inStreamobject passed in the Constructor.- Specified by:
onOpenin classorg.java_websocket.client.WebSocketClient
-
onClose
public void onClose(int code, String reason, boolean remote)Implements the method stated inStreamobject passed in the Constructor.- Specified by:
onClosein classorg.java_websocket.client.WebSocketClient
-
onError
public void onError(Exception ex)
Implements the method stated inStreamobject passed in the Constructor.- Specified by:
onErrorin classorg.java_websocket.client.WebSocketClient
-
-