Home Reference Source Test
public class | source

WebRtcConnector

Extends:

Observable → WebRtcConnector

Constructor Summary

Public Constructor
public

constructor(networkConfig: NetworkConfig)

Method Summary

Public Methods
public

connect(peerAddress: PeerAddress, signalChannel: PeerChannel): boolean

public

isValidSignal(msg: *): *

public

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

Public Methods

public connect(peerAddress: PeerAddress, signalChannel: PeerChannel): boolean source

Params:

NameTypeAttributeDescription
peerAddress PeerAddress
signalChannel PeerChannel

Return:

boolean

public isValidSignal(msg: *): * source

Params:

NameTypeAttributeDescription
msg *

Return:

*

public onSignal(channel: PeerChannel, msg: SignalMessage) source

Params:

NameTypeAttributeDescription
channel PeerChannel
msg SignalMessage