Uses of Interface
com.tccc.kos.commons.web.websocket.WebsocketConnection
Packages that use WebsocketConnection
Package
Description
Contains classes that comprise the websocket clients.
Contains classes that handle websocket connections.
Contains classes that pertain to the router.
Contains data classes related to the router.
-
Uses of WebsocketConnection in com.tccc.kos.commons.web.client
Methods in com.tccc.kos.commons.web.client that return WebsocketConnectionModifier and TypeMethodDescriptionWebsocketClient.getConnection()
Return the active connection if there is one. -
Uses of WebsocketConnection in com.tccc.kos.commons.web.websocket
Methods in com.tccc.kos.commons.web.websocket with parameters of type WebsocketConnectionModifier and TypeMethodDescriptionboolean
WebsocketConnectionAuthorizer.isAuthorized
(HttpRequest request, WebsocketConnection conn) Called when a client connects to the server.void
WebsocketConnectionListener.onConnect
(WebsocketConnection conn) Called when a client connects to the server.void
WebsocketConnectionListener.onDisconnect
(WebsocketConnection conn) Called when a client disconnects from the server.default void
WebsocketConnectionListener.onError
(WebsocketConnection conn) Called when a client has an error.void
WebsocketMsgHandler.onReceiveFromRemote
(WebsocketConnection conn, String msg) Called when a message is received from the remote host. -
Uses of WebsocketConnection in com.tccc.kos.commons.web.websocket.router
Methods in com.tccc.kos.commons.web.websocket.router with parameters of type WebsocketConnectionModifier and TypeMethodDescriptionvoid
RouterEngine.addAlias
(WebsocketConnection conn, String alias) Add an alias to the specified connection.void
RouterEngine.addClient
(WebsocketConnection conn) Add a client to the router.void
RouterEngine.addRouter
(WebsocketConnection conn) Add the connection as a router.void
RouterEngine.disconnect
(WebsocketConnection conn) Handle disconnect of a routed connection.void
RouterMessageHandler.handleMsg
(WebsocketRouter router, WebsocketConnection conn, InboundMessage msg) Called when a message destined for the local node is processed by the router.void
WebsocketRouter.onConnect
(WebsocketConnection conn) Process connections from various sources including the http server which allows clients to connect, as well as outbound websockets.void
WebsocketRouter.onDisconnect
(WebsocketConnection conn) void
RouterEngine.onReceiveFromRemote
(WebsocketConnection conn, String txtMsg) Route the message to the correct destination.void
RouterEngine.routeMsg
(WebsocketConnection conn, InboundMessage msg) Attempt to route the specified message.void
RouterEngine.sendMsg
(WebsocketConnection conn, RoutedMessage msg) Convenience method to send a message to a connection -
Uses of WebsocketConnection in com.tccc.kos.commons.web.websocket.router.msg
Methods in com.tccc.kos.commons.web.websocket.router.msg that return WebsocketConnectionConstructors in com.tccc.kos.commons.web.websocket.router.msg with parameters of type WebsocketConnectionModifierConstructorDescriptionInboundMessage
(WebsocketConnection conn, String str) Create a new message from the specified string.