1 | /**
|
2 | * Supported STOMP versions
|
3 | *
|
4 | * Part of `@stomp/stompjs`.
|
5 | */
|
6 | export declare class Versions {
|
7 | versions: string[];
|
8 | /**
|
9 | * Indicates protocol version 1.0
|
10 | */
|
11 | static V1_0: string;
|
12 | /**
|
13 | * Indicates protocol version 1.1
|
14 | */
|
15 | static V1_1: string;
|
16 | /**
|
17 | * Indicates protocol version 1.2
|
18 | */
|
19 | static V1_2: string;
|
20 | /**
|
21 | * @internal
|
22 | */
|
23 | static default: Versions;
|
24 | /**
|
25 | * Takes an array of versions, typical elements '1.2', '1.1', or '1.0'
|
26 | *
|
27 | * You will be creating an instance of this class if you want to override
|
28 | * supported versions to be declared during STOMP handshake.
|
29 | */
|
30 | constructor(versions: string[]);
|
31 | /**
|
32 | * Used as part of CONNECT STOMP Frame
|
33 | */
|
34 | supportedVersions(): string;
|
35 | /**
|
36 | * Used while creating a WebSocket
|
37 | */
|
38 | protocolVersions(): string[];
|
39 | }
|