UNPKG

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