File

consolidated/stompjs/src/stomp-subscription.ts

Description

Call Client#subscribe to create a StompSubscription.

Part of @stomp/stompjs.

Index

Properties

Properties

Public id
Type : string

Id associated with this subscription.

Public unsubscribe
Type : function

Unsubscribe. See Client#unsubscribe for an example.

import { StompHeaders } from './stomp-headers';

/**
 * Call [Client#subscribe]{@link Client#subscribe} to create a StompSubscription.
 *
 * Part of `@stomp/stompjs`.
 */
export class StompSubscription {
  /**
   * Id associated with this subscription.
   */
  public id: string;

  /**
   * Unsubscribe. See [Client#unsubscribe]{@link Client#unsubscribe} for an example.
   */
  public unsubscribe: (headers?: StompHeaders) => void;
}

result-matching ""

    No results matching ""