WindowSocket

WindowSocket

new WindowSocket(_windowopt)

Source:
Parameters:
Name Type Attributes Description
_window Window <optional>

specify other window to listen

Classes

Client

Methods

(static) broadcast(…args) → {WindowSocket}

Source:
Parameters:
Name Type Attributes Description
args Array.<any> <repeatable>
Returns:
Type
WindowSocket

(static) clients() → {Array.<WindowSocket.Client>}

Source:
Returns:
Type
Array.<WindowSocket.Client>

(static) encoders() → {Array.<WindowSocket.Encoder>}

Source:

get current encoders

Returns:
Type
Array.<WindowSocket.Encoder>

(static) encoders(encoders) → {WindowSocket}

Source:

update encoders

Parameters:
Name Type Description
encoders Array.<WindowSocket.Encoder>
Returns:
Type
WindowSocket

(static) fire(…args) → {WindowSocket}

Source:
Parameters:
Name Type Attributes Description
args Array.<any> <repeatable>
Returns:
Type
WindowSocket

(static) start() → {WindowSocket}

Source:
Returns:
Type
WindowSocket

(static) stop() → {WindowSocket}

Source:
Returns:
Type
WindowSocket

(static) validateSource(event) → {WindowSocket.Client}

Source:

Validate Message Event Source

Parameters:
Name Type Description
event MessageEvent
Returns:
Type
WindowSocket.Client

Events

connect

Source:
Parameters:
Type Description
WindowSocket.Client

message

Source:
Type:
  • object

message:error

Source:
Type:
  • MessageEvent

message:raw

Source:
Type:
  • MessageEvent