Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Signaler

Hierarchy

  • Signaler

Index

Constructors

  • new Signaler(signalingAddress?: string): Signaler

Properties

getAnswerSubject: Subject<IAnswerRef> = ...
getConnectedSubject: Subject<boolean> = ...
getOfferSubject: Subject<IOfferRef> = ...
getUserConnSubject: Subject<string> = ...
peerlist: BehaviorSubject<IUserRef[]> = ...
socket: WebSocket

Methods

  • connectUser(user: User): Promise<string>
  • observePeerList(): Observable<IUserRef[]>
  • onSocketConnected(): Promise<boolean>
  • sendAnswer(targetUserId: string, answer: any): void
  • sendOffer(targetUserId: string, offer: any): void
  • socketMessage(message: { data: string }): void
  • socket_getAnswer(data: any): void
  • socket_getOffer(data: any): void
  • socket_peerlist(data: { alias: string; id: string }[]): void
  • socket_userConnected(data: { id: string }): void

Generated using TypeDoc