UNPKG

443 BTypeScriptView Raw
1import { StompHeaders } from './stomp-headers.js';
2/**
3 * Call [Client#subscribe]{@link Client#subscribe} to create a StompSubscription.
4 *
5 * Part of `@stomp/stompjs`.
6 */
7export interface StompSubscription {
8 /**
9 * Id associated with this subscription.
10 */
11 id: string;
12 /**
13 * Unsubscribe. See [Client#unsubscribe]{@link Client#unsubscribe} for an example.
14 */
15 unsubscribe: (headers?: StompHeaders) => void;
16}