public final class OKCoinClientEndpoint extends Object
Constructor and Description |
---|
OKCoinClientEndpoint() |
Modifier and Type | Method and Description |
---|---|
void |
addChannel(javax.websocket.Session session,
String channel) |
void |
addChannel(javax.websocket.Session session,
String channel,
Map<String,String> parameters) |
void |
addChannelListener(String channel,
OKCoinDataListener listener) |
void |
onClose(javax.websocket.Session session,
javax.websocket.CloseReason reason) |
void |
onError(javax.websocket.Session session,
Throwable throwable) |
void |
onMessage(javax.websocket.Session session,
OKCoinData[] data) |
void |
onOpen(javax.websocket.Session session,
javax.websocket.EndpointConfig config) |
void |
removeChannel(javax.websocket.Session session,
String channel) |
public void onOpen(javax.websocket.Session session, javax.websocket.EndpointConfig config)
public void onMessage(javax.websocket.Session session, OKCoinData[] data) throws IOException, javax.websocket.EncodeException
IOException
javax.websocket.EncodeException
public void onClose(javax.websocket.Session session, javax.websocket.CloseReason reason)
public void onError(javax.websocket.Session session, Throwable throwable)
public void addChannelListener(String channel, OKCoinDataListener listener)
public void addChannel(javax.websocket.Session session, String channel)
public void addChannel(javax.websocket.Session session, String channel, Map<String,String> parameters)
public void removeChannel(javax.websocket.Session session, String channel)
Copyright © 2013–2017. All rights reserved.