@stomp/stompjs
Version:
STOMP client for Javascript and Typescript
40 lines (39 loc) • 885 B
TypeScript
/**
* Supported STOMP versions
*
* Part of `@stomp/stompjs`.
*/
export declare class Versions {
versions: string[];
/**
* Indicates protocol version 1.0
*/
static V1_0: string;
/**
* Indicates protocol version 1.1
*/
static V1_1: string;
/**
* Indicates protocol version 1.2
*/
static V1_2: string;
/**
* @internal
*/
static default: Versions;
/**
* Takes an array of versions, typical elements '1.2', '1.1', or '1.0'
*
* You will be creating an instance of this class if you want to override
* supported versions to be declared during STOMP handshake.
*/
constructor(versions: string[]);
/**
* Used as part of CONNECT STOMP Frame
*/
supportedVersions(): string;
/**
* Used while creating a WebSocket
*/
protocolVersions(): string[];
}