Uses of Class
com.tccc.kos.commons.web.client.WebsocketClient
Packages that use WebsocketClient
Package
Description
Contains classes that comprise the websocket clients.
Contains classes that pertain to the router.
-
Uses of WebsocketClient in com.tccc.kos.commons.web.client
Methods in com.tccc.kos.commons.web.client that return WebsocketClientModifier and TypeMethodDescriptionWebsocketClient.addListener
(WebsocketConnectionListener listener) Add a connection listener to the client.WebsocketClient.disablePing()
Disable ping timeout checks on the websocket connection.WebsocketClient.removeListener
(WebsocketConnectionListener listener) Remove a connection listener from the client.WebsocketClient.setEndpoint
(WebsocketEndpoint endpoint) Set the endpoint.WebsocketClient.setMaxFailedConnects
(int maxFailedConnects) Set the max number of failed connects before stopping the client.WebsocketClient.setMaxFailureCount
(int count) Set the max failure count when computing the reconnect delay.WebsocketClient.setMinSuccessfulConnectTimeMS
(long ms) Set the minimum time a connection must be connected before a disconnect is considered a failure.WebsocketClient.setMsgHandler
(WebsocketMsgHandler msgHandler) Set the message handler to receive incoming messages.WebsocketClient.setReconnect
(boolean reconnect) Set reconnect flag.WebsocketClient.setRetryDelayBaseTimeMS
(long ms) Set the base delay time for a reconnect.WebsocketClient.setRetryDelayMaxTimeMS
(long ms) Set the max retry delay.WebsocketClient.setRetryDelayPerFailureTimeMS
(long ms) Set the delay to add to the base retry time when there are connection failures.WebsocketClient.start()
Start the client which will cause it to try to connect to the currently configured endpoint if there is one.Methods in com.tccc.kos.commons.web.client with parameters of type WebsocketClientModifier and TypeMethodDescriptionvoid
WebsocketClientListener.onFailedConnect
(WebsocketClient client) Called when a client stops due to connection failures. -
Uses of WebsocketClient in com.tccc.kos.commons.web.websocket.router
Methods in com.tccc.kos.commons.web.websocket.router that return WebsocketClientModifier and TypeMethodDescriptionWebsocketRouter.createOutboundRouterWebsocket()
Calls createOutboundRouterWebsocket(alias) without an alias.WebsocketRouter.createOutboundRouterWebsocket
(String alias) Create an outbound router to router websocket client.