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 TypeMethodDescriptionbooleanWebsocketConnectionAuthorizer.isAuthorized(HttpRequest request, WebsocketConnection conn) Called when a client connects to the server.voidWebsocketConnectionListener.onConnect(WebsocketConnection conn) Called when a client connects to the server.voidWebsocketConnectionListener.onDisconnect(WebsocketConnection conn) Called when a client disconnects from the server.default voidWebsocketConnectionListener.onError(WebsocketConnection conn) Called when a client has an error.voidWebsocketMsgHandler.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 TypeMethodDescriptionvoidRouterEngine.addAlias(WebsocketConnection conn, String alias) Add an alias to the specified connection.voidRouterEngine.addClient(WebsocketConnection conn) Add a client to the router.voidRouterEngine.addRouter(WebsocketConnection conn) Add the connection as a router.voidRouterEngine.disconnect(WebsocketConnection conn) Handle disconnect of a routed connection.voidRouterMessageHandler.handleMsg(WebsocketRouter router, WebsocketConnection conn, InboundMessage msg) Called when a message destined for the local node is processed by the router.voidWebsocketRouter.onConnect(WebsocketConnection conn) Process connections from various sources including the http server which allows clients to connect, as well as outbound websockets.voidWebsocketRouter.onDisconnect(WebsocketConnection conn) voidRouterEngine.onReceiveFromRemote(WebsocketConnection conn, String txtMsg) Route the message to the correct destination.voidRouterEngine.routeMsg(WebsocketConnection conn, InboundMessage msg) Attempt to route the specified message.voidRouterEngine.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.