API Docs for: 0.0.0
Show:

LCARSServer Class

Defined in: library\x-beta.js:3
Module: Elements

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
)

Defined in library\x-beta.js:3

Parameters:

  • handler Handler

Item Index

Methods

broadcast

(
  • message
  • [] [sessions]
)

Parameters:

  • message Object

    The message to send to indicated connections.

  • [] [sessions] String optional

    When specified, only the indicated sessions will receive the message.

terminate

(
  • session
)

Parameters:

  • session String

    The identifier for the session to be terminated.

Events

establish

Occurs when a Petition connects to an AccessSet successfully.

Event Payload:

  • data Petition

fault

Occurs when a Petition is received with an unknown event key.

Event Payload:

  • data Petition

malformed

Occurs when a Petition appears valid but suffers an exception.

Event Payload:

  • data Anomaly