consolidated/stompjs/src/stomp-subscription.ts
Call Client#subscribe to create a StompSubscription.
Part of @stomp/stompjs
.
Properties |
id |
id:
|
Type : string
|
Id associated with this subscription. |
unsubscribe |
unsubscribe:
|
Type : function
|
Unsubscribe. See Client#unsubscribe for an example. |
import { StompHeaders } from './stomp-headers.js';
/**
* Call [Client#subscribe]{@link Client#subscribe} to create a StompSubscription.
*
* Part of `@stomp/stompjs`.
*/
export interface StompSubscription {
/**
* Id associated with this subscription.
*/
id: string;
/**
* Unsubscribe. See [Client#unsubscribe]{@link Client#unsubscribe} for an example.
*/
unsubscribe: (headers?: StompHeaders) => void;
}