Interface WebsocketStreamClient
-
- All Known Implementing Classes:
WebsocketStreamClientImpl
public interface WebsocketStreamClient
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description okhttp3.WebSocketconnect()okhttp3.WebSocketgetPrivateChannelStream(List<String> argNames, String path)Subscribe private channelokhttp3.WebSocketgetPublicChannelStream(List<String> argNames, String path)Subscribe public channelokhttp3.WebSocketgetTradeChannelStream(Map<String,Object> params, String path)Websocket Api MessagevoidonClose(okhttp3.WebSocket ws, int code, String reason)voidonError(Throwable t)voidonMessage(String msg)voidonOpen(okhttp3.WebSocket ws)voidsendSubscribeMessage(okhttp3.WebSocket ws, List<String> args)voidsendSubscribeMessage(okhttp3.WebSocket ws, Map<String,Object> params)voidsetMessageHandler(WebSocketMessageCallback webSocketMessageCallback)
-
-
-
Method Detail
-
onMessage
void onMessage(String msg) throws com.fasterxml.jackson.core.JsonProcessingException
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
onError
void onError(Throwable t)
-
onClose
void onClose(okhttp3.WebSocket ws, int code, String reason)
-
onOpen
void onOpen(okhttp3.WebSocket ws)
-
connect
okhttp3.WebSocket connect()
-
getPublicChannelStream
okhttp3.WebSocket getPublicChannelStream(List<String> argNames, String path)
Subscribe public channel- Parameters:
argNames- argspath- path- Returns:
-
getPrivateChannelStream
okhttp3.WebSocket getPrivateChannelStream(List<String> argNames, String path)
Subscribe private channel- Parameters:
argNames- agrspath- path- Returns:
-
getTradeChannelStream
okhttp3.WebSocket getTradeChannelStream(Map<String,Object> params, String path)
Websocket Api Message- Parameters:
params- paramspath- path- Returns:
-
setMessageHandler
void setMessageHandler(WebSocketMessageCallback webSocketMessageCallback)
-
-