Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SignalingChannel

A class for signaling channel for two peers to exchange messages. Used during the ICE framework.

Hierarchy

  • SignalingChannel

Index

Constructors

constructor

Properties

onMSG

onMSG: function

Function to do when receiving a message through the channel.

Type declaration

    • (msg: any): void
    • Parameters

      • msg: any

      Returns void

signalingChannel

signalingChannel: string

Id of the channel hosted on the room server.

socket

socket: RoomServer

The room server where the channel is hosted.

Methods

close

  • close(): void

send

  • send(msg: any): void

setOnMSG

  • setOnMSG(f: function): void
  • Sets onMsg function.

    Parameters

    • f: function

      Function to use as onMsg.

        • (msg: any): void
        • Parameters

          • msg: any

          Returns void

    Returns void

Private setupOnMsg

  • setupOnMsg(): void

Generated using TypeDoc