Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Router

Hierarchy

  • Router

Index

Constructors

  • new Router(initiator: boolean): Router

Properties

answer: Subject<SignalData> = ...
connection: Subject<undefined> = ...
data: Subject<string> = ...
offer: Subject<SignalData> = ...
peer: Instance

Methods

  • destroy(): void
  • getAnswer(): Promise<SignalData>
  • getOffer(): Promise<SignalData>
  • onConnection(): Promise<void>
  • onData(): Observable<string>
  • sendMessage(data: SimplePeerData): void
  • signal(data: string | SignalData): void

Generated using TypeDoc