Skip to content

Commit 4eaed27

Browse files
committed
Assets for v7.1.1
1 parent 156a126 commit 4eaed27

8 files changed

Lines changed: 35 additions & 12 deletions

File tree

bundles/stomp.umd.js

Lines changed: 10 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bundles/stomp.umd.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

esm6/client.d.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,21 @@ export declare class Client {
7070
private _nextReconnectDelay;
7171
/**
7272
* Maximum time to wait between reconnects, in milliseconds. Defaults to 15 minutes.
73-
* Only relevant when reconnectTimeMode not LINEAR (e.g. EXPONENTIAL).
74-
* Set to 0 to wait indefinitely.
73+
* Only relevant when [Client#reconnectTimeMode]{@link Client#reconnectTimeMode} not LINEAR (e.g., EXPONENTIAL).
74+
* Set to 0 for no limit on wait time.
7575
*/
7676
maxReconnectDelay: number;
7777
/**
7878
* Reconnection wait time mode, either linear (default) or exponential.
7979
* Note: See [Client#maxReconnectDelay]{@link Client#maxReconnectDelay} for setting the maximum delay when exponential
80+
*
81+
* ```javascript
82+
* client.configure({
83+
* reconnectTimeMode: ReconnectionTimeMode.EXPONENTIAL,
84+
* reconnectDelay: 200, // It will wait 200, 400, 800 ms...
85+
* maxReconnectDelay: 10000, // Optional, when provided, it will not wait more that these ms
86+
* })
87+
* ```
8088
*/
8189
reconnectTimeMode: ReconnectionTimeMode;
8290
/**

esm6/client.js

Lines changed: 10 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

esm6/client.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

esm6/stomp-config.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { StompHeaders } from './stomp-headers.js';
22
import { ActivationState, TickerStrategy, closeEventCallbackType, debugFnType, frameCallbackType, messageCallbackType, ReconnectionTimeMode, wsErrorCallbackType } from './types.js';
33
import { Versions } from './versions.js';
4+
import { Client } from './client.js';
45
/**
56
* Configuration options for STOMP Client, each key corresponds to
67
* field by the same name in {@link Client}. This can be passed to
@@ -88,7 +89,7 @@ export declare class StompConfig {
8889
/**
8990
* See [Client#beforeConnect]{@link Client#beforeConnect}.
9091
*/
91-
beforeConnect?: () => void | Promise<void>;
92+
beforeConnect?: (client: Client) => void | Promise<void>;
9293
/**
9394
* See [Client#onConnect]{@link Client#onConnect}.
9495
*/

esm6/stomp-config.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/i-transaction.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* A Transaction is created by calling [Client#begin]{@link Client#begin}
33
*
44
* Part of `@stomp/stompjs`.
5-
*
6-
* TODO: Example and caveat
75
*/
86
export interface ITransaction {
97
/**

0 commit comments

Comments
 (0)