LCARSServer Class
General Library Access/Retrieval Server for the LCARS Library
The library serves as an endpoint for specific collections as designated by the configuration. A websocket is used to synchronize collections being provided to various registrations, allowing for multiple displays to synchronize displayed data.
Constructor
LCARSServer
(
-
handler
Parameters:
-
handlerHandler
Methods
broadcast
(
-
message -
[] [sessions]
Parameters:
-
messageObjectThe message to send to indicated connections.
-
[] [sessions]String optionalWhen specified, only the indicated sessions will receive the message.
terminate
(
-
session
Parameters:
-
sessionStringThe identifier for the session to be terminated.
Events
establish
Occurs when a Petition connects to an AccessSet successfully.
Event Payload:
-
dataPetition
fault
Occurs when a Petition is received with an unknown event key.
Event Payload:
-
dataPetition
malformed
Occurs when a Petition appears valid but suffers an exception.
Event Payload:
-
dataAnomaly
