new Connection(optionsopt) → {Connection}
Properties:
Name | Type | Description |
---|---|---|
id |
string | number | |
from |
string | number | |
to |
string | number |
Creates a connection object
Examples
let connection = new Connection();
let connection = new Connection({
from: 0,
to: 1
});
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
options Properties
|
Fires:
- event:created
Returns:
Returns Connection
- Type
- Connection