Package no.polaric.core.httpd
Class NodeWs
java.lang.Object
no.polaric.core.httpd.ServerBase
no.polaric.core.httpd.WsNotifier
no.polaric.core.httpd.NodeWs
- All Implemented Interfaces:
SesNotifier
WebSocket communiction between server nodes.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface no.polaric.core.httpd.SesNotifier
SesNotifier.SHandler -
Field Summary
Fields inherited from class no.polaric.core.httpd.WsNotifier
_clients -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet set of subcriber-idsnewClient(io.javalin.websocket.WsContext conn) Factory method.booleanPost a object to a node (JSON encoded)booleanPost a message to node.voidRemove a subscribervoidMethods inherited from class no.polaric.core.httpd.WsNotifier
authenticate, clients, closeSes, nClients, nLoggedIn, nLogins, nVisits, onCloseSes, onOpenSes, postText, postText, sesId, start, subscribeMethods inherited from class no.polaric.core.httpd.ServerBase
addSubtype, cleanPath, clientIpAddr, conf, deserializeJson, fixText, fromJson, getAuthInfo, icon, metaTag, protect, protect, roundDeg, serializeJson, systemNotification, toJson, urlDecode, wServer
-
Constructor Details
-
NodeWs
-
-
Method Details
-
getSubscribers
Get set of subcriber-ids -
removeSubscriber
Remove a subscriber -
setHandler
-
putText
Post a message to node. Returns true if sending was successful. -
put
Post a object to a node (JSON encoded) -
newClient
Factory method.- Specified by:
newClientin classWsNotifier
-