Class: WindowMessage

WindowMessage()

new WindowMessage()

Message object sent between windows. Contains booth window identification useful for message forwarding between windows and user authentication data.
Source:

Members

(static) BROADCAST

Broadcast message. { type: BROADCAST, originUUID: ..., originType: ..., destinationUUID: "*", hops: [UUID1, UUID2, ...], //Each hop adds its UUID to the list data(?): ..., authentication(?): ... }
Source:

(static) CLOSED

Closed message is used to indicate that the comunication was terminated. { type: CLOSED, originUUID: ..., originType: ... }
Source:

(static) CONNECT

Message used after obtaining a positive lookup respose to connect to the remote window trough the middle layers. After the connect message reaches the destination the window should send a READY message. { type: CONNECT, originUUID: ..., originType: ..., destinationType: ..., destinationUUID: ..., hops: [UUID1, UUID2, ...] //Each hop adds its UUID to the list }
Source:

(static) LOOKUP

Message to lookup for a window type in the neighbor session. { type: LOOKUP, originUUID: ..., originType: ..., destinationType: ... }
Source:

(static) LOOKUP_FOUND

Lookup response for when a window was found. { type: LOOKUP_FOUND, originUUID: ..., originType: ..., data: { uuid: ..., //Of the requested session type: ... } }
Source:

(static) LOOKUP_NOT_FOUND

Message responde for when a window is not found. { type: LOOKUP_NOT_FOUND, originUUID: ..., originType: ... }
Source:

(static) MESSAGE

Regular message exchanged between the windows. { type: LOOKUP, originUUID: ..., originType: ..., destinationType: ..., destinationUUID: ..., data(?): ..., authentication(?): ... }
Source:

(static) READY

Ready message exchanged before starting comunication. { type: READY, originUUID: ..., originType: ... }
Source:

action :Number

The action category of this message. Obligatory message field.
Type:
  • Number
Source:

hops :Array

Hops of this message until it reaches its destination. Each window where this message passes should push its UUID to this list. e.g [UUID1, UUID2, UUID3], UUID3 is the uuid of the last sessions before destination, booth origin and destination are not included in the hop list.
Type:
  • Array
Source:

number :Number

Message number in the context of messages exchanged between the windows.
Type:
  • Number
Source:

originType :String

Type of the window that sent the message. Obligatory message field. (e.g. "3D", "Main", etc)
Type:
  • String
Source:

originUUID :String

UUID to identify the window that sent the message. Obligatory message field.
Type:
  • String
Source: