WebSocketConnector
Extends:
Constructor Summary
Public Constructor | ||
public |
constructor(protocol: number, protocolPrefix: string, networkConfig: NetworkConfig) |
Method Summary
Public Methods | ||
public |
abort(peerAddress: PeerAddress): void |
|
public |
connect(peerAddress: PeerAddress): boolean |
Inherited Summary
From class Observable | ||
public static get |
WILDCARD: string: string |
|
public |
bubble(observable: Observable, types: ...string) |
|
public |
fire(type: string, args: ...*): Promise |
|
public |
off(type: string, id: number) |
|
public |
on(type: string, callback: Function): number |
Public Constructors
public constructor(protocol: number, protocolPrefix: string, networkConfig: NetworkConfig) source
Override:
Observable#constructorParams:
Name | Type | Attribute | Description |
protocol | number | ||
protocolPrefix | string | ||
networkConfig | NetworkConfig |
Listen:
* |
WebSocketServer#connection |
Public Methods
public abort(peerAddress: PeerAddress): void source
Params:
Name | Type | Attribute | Description |
peerAddress | PeerAddress |
Return:
void |
public connect(peerAddress: PeerAddress): boolean source
Params:
Name | Type | Attribute | Description |
peerAddress | PeerAddress |
Return:
boolean |