Interface ManagedPeerDataConnectionMessageQueue

Helper associated with data connection, which simplifies receiving messages.

Hierarchy

  • ManagedPeerDataConnectionMessageQueue

Properties

Properties

length: number
pop: (() => any)

Type declaration

    • (): any
    • Returns any

receive: (() => Promise<any>)

Type declaration

    • (): Promise<any>
    • This promise throws if conn is in closed/error state.

      It does not throw if connection is closed, but there are some messages yet to be received.

      Returns Promise<any>

Generated using TypeDoc