Home Reference Source Test
public class | source

WebSocketConnector

Extends:

Observable → WebSocketConnector

Constructor Summary

Public Constructor
public

constructor(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 | null

public

off(type: string, id: number)

public

on(type: string, callback: Function): number

Public Constructors

public constructor(networkConfig: NetworkConfig) source

Override:

Observable#constructor

Params:

NameTypeAttributeDescription
networkConfig NetworkConfig

Listen:

*

WebSocketServer#connection

Public Methods

public abort(peerAddress: PeerAddress): void source

Params:

NameTypeAttributeDescription
peerAddress PeerAddress

Return:

void

public connect(peerAddress: PeerAddress): boolean source

Params:

NameTypeAttributeDescription
peerAddress PeerAddress

Return:

boolean