public class SimpleWebSocket
extends org.java_websocket.client.WebSocketClient
Constructor and Description |
---|
SimpleWebSocket() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
void |
onClose(int code,
String reason,
boolean remote) |
void |
onError(Exception ex) |
void |
onMessage(String message) |
void |
onOpen(org.java_websocket.handshake.ServerHandshake handshakedata) |
close, close, close, closeBlocking, closeConnection, connect, connectBlocking, getAttachment, getConnection, getConnections, getDraft, getLocalSocketAddress, getLocalSocketAddress, getReadyState, getRemoteSocketAddress, getRemoteSocketAddress, getResourceDescriptor, getSocket, getURI, hasBufferedData, isClosed, isClosing, isConnecting, isFlushAndClose, isOpen, onCloseInitiated, onClosing, onFragment, onMessage, onWebsocketClose, onWebsocketCloseInitiated, onWebsocketClosing, onWebsocketError, onWebsocketMessage, onWebsocketMessage, onWebsocketMessageFragment, onWebsocketOpen, onWriteDemand, reconnect, reconnectBlocking, run, send, send, send, sendFragmentedFrame, sendFrame, sendFrame, sendPing, setAttachment, setProxy, setSocket
getConnectionLostTimeout, isReuseAddr, isTcpNoDelay, setConnectionLostTimeout, setReuseAddr, setTcpNoDelay, startConnectionLostTimer, stopConnectionLostTimer
public SimpleWebSocket() throws URISyntaxException
URISyntaxException
public static void main(String[] args) throws URISyntaxException
URISyntaxException
public void onOpen(org.java_websocket.handshake.ServerHandshake handshakedata)
onOpen
in class org.java_websocket.client.WebSocketClient
public void onMessage(String message)
onMessage
in class org.java_websocket.client.WebSocketClient
public void onClose(int code, String reason, boolean remote)
onClose
in class org.java_websocket.client.WebSocketClient
public void onError(Exception ex)
onError
in class org.java_websocket.client.WebSocketClient
Copyright © 2018 Pusher. All rights reserved.