Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Messenger

Hierarchy

  • Messenger

Index

Methods

notifications

  • notifications<T>(channel: string): Observable<T>
  • Returns an Observable that emits all incoming notifications for given notification-channel.

    Type parameters

    • T = any

    Parameters

    • channel: string

    Returns Observable<T>

notify

  • notify<T>(channel: string, payload?: T): void
  • Send a notification over given channel with given payload.

    Type parameters

    • T

    Parameters

    • channel: string
    • Optional payload: T

    Returns void

request

  • request<T, U>(channel: string, payload?: T): Observable<U>
  • Send a request over given channel with given payload. Returns an observable that will emit the response and then complete.

    Type parameters

    • T = any

    • U = any

    Parameters

    • channel: string
    • Optional payload: T

    Returns Observable<U>

requests

  • requests<T, U>(channel: string): Observable<Request<T, U>>
  • Returns an Observable that emits all incoming requests for given request-channel.

    Type parameters

    • T = any

    • U = any

    Parameters

    • channel: string

    Returns Observable<Request<T, U>>