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