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 TypeMethodDescriptionnewClient
(io.javalin.websocket.WsContext conn) Factory method.boolean
Post a object to a node (JSON encoded)boolean
Post a message to node.void
void
Methods inherited from class no.polaric.core.httpd.WsNotifier
authenticate, clients, closeSes, nClients, nLoggedIn, nLogins, nVisits, onCloseSes, onOpenSes, postText, postText, sesId, start, subscribe
Methods inherited from class no.polaric.core.httpd.ServerBase
addSubtype, cleanPath, clientIpAddr, conf, deserializeJson, fixText, fromJson, getAuthInfo, icon, metaTag, protect, protect, roundDeg, serializeJson, systemNotification, toJson, wServer
-
Constructor Details
-
NodeWs
-
-
Method Details
-
getSubscribers
-
removeSubscriber
-
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:
newClient
in classWsNotifier
-