Home Reference Source
import {WacDataPipe} from '@quobis/sippojs'
public class | source

WacDataPipe

Extends:

eventemitter2~EventEmitter2DataPipe → WacDataPipe

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public
public
public

status: *

Method Summary

Public Methods
public

async connect(): *

public

async disconnect(): *

public

async reject(): *

public

async send(data: *): *

Inherited Summary

From class DataPipe
public get

Gets a unique identifier for the pipe

public get

Return label associated with this DataPipe.

public get

Gets the identities of the peers attached to this pipe

public get

Gets the identities of the remote peers attached to this pipe

public get

Retrieves the current status of this pipe.

public get

type: DataPipe.TYPE

Gets pipe type

public
public
public
public
public
public
public
public

Adds a participant to this pipe.

public

Attempts to reach the pipe recipient and establish a connection.

public

Ends an active pipe.

public

Called when a user does not wish to accept an incoming pipe.

public

Removes a participant from this pipe.

public

Sends data to the DataPipe recipients

public

Returns a Promise resolved when pipe reaches provided state

Public Constructors

public constructor() source

Public Members

public datapipeService: * source

public gatewayUsername: * source

public internalId: * source

public status: * source

Retrieves the current status of this pipe.

Override:

DataPipe#status

Public Methods

public async connect(): * source

Attempts to reach the pipe recipient and establish a connection. For an incoming pipe, calling this method explicitly joins/accepts the pipe.

When this method fails returned {Promise} is rejected with one of next {Error}

  • 'unimplemented'
  • 'invalid-state' error when called on state different than "unconnected" state
  • 'disconnected' pipe reaches disconnected state without being connected

Override:

DataPipe#connect

Return:

*

public async disconnect(): * source

Ends an active pipe.

When this method fails returned {Promise} is rejected with one of next {Error}

  • 'unimplemented'
  • 'invalid-state' error when called on state different than "connected" state

Override:

DataPipe#disconnect

Return:

*

public async reject(): * source

Called when a user does not wish to accept an incoming pipe.

When this method fails returned {Promise} is rejected with one of next {Error}

  • 'unimplemented'
  • 'invalid-state' error when called on state different than "unconnected" state
  • 'invalid-state' error when called on outgoing pipes

Override:

DataPipe#reject

Return:

*

public async send(data: *): * source

Sends data to the DataPipe recipients

When this method fails returned {Promise} is rejected with one of next {Error}

  • 'unimplemented'
  • 'invalid-state' error when called on state different than "connected" state

Override:

DataPipe#send

Params:

NameTypeAttributeDescription
data *

Return:

*