SignalingGate
This class represents a door of the WebChannel
for the current peer. If the door
is open, then clients can join the WebChannel
through this peer. There are as
many doors as peers in the WebChannel
and each of them can be closed or opened.
Constructor Summary
Public Constructor | ||
public |
constructor(wc: WebChannel) |
Member Summary
Public Members | ||
public |
|
Method Summary
Public Methods | ||
public |
close() Close the door if it is open and do nothing if it is closed already. |
|
public |
getOpenData(): OpenData | null Get open data. |
|
public |
Check if the door is opened or closed. |
|
public |
Open the gate. |
Public Constructors
public constructor(wc: WebChannel) source
Params:
Name | Type | Attribute | Description |
wc | WebChannel |