Skip to content

Commit

Permalink
Artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
kum-deepak committed Jul 19, 2018
1 parent c133eab commit 1d22452
Show file tree
Hide file tree
Showing 60 changed files with 4,486 additions and 3,506 deletions.
1,018 changes: 612 additions & 406 deletions bundles/stomp.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundles/stomp.umd.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundles/stomp.umd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundles/stomp.umd.min.js.map

Large diffs are not rendered by default.

147 changes: 81 additions & 66 deletions docs/additional-documentation/change-log.html

Large diffs are not rendered by default.

147 changes: 81 additions & 66 deletions docs/additional-documentation/how-to-contribute.html

Large diffs are not rendered by default.

147 changes: 81 additions & 66 deletions docs/additional-documentation/introduction.html

Large diffs are not rendered by default.

147 changes: 81 additions & 66 deletions docs/additional-documentation/sockjs-support.html

Large diffs are not rendered by default.

147 changes: 81 additions & 66 deletions docs/additional-documentation/stomp-brokers.html

Large diffs are not rendered by default.

147 changes: 81 additions & 66 deletions docs/additional-documentation/upgrading.html

Large diffs are not rendered by default.

147 changes: 81 additions & 66 deletions docs/additional-documentation/usage.html

Large diffs are not rendered by default.

1,135 changes: 530 additions & 605 deletions docs/classes/Client.html

Large diffs are not rendered by default.

1,063 changes: 766 additions & 297 deletions docs/classes/CompatClient.html

Large diffs are not rendered by default.

189 changes: 104 additions & 85 deletions docs/classes/Frame.html

Large diffs are not rendered by default.

149 changes: 82 additions & 67 deletions docs/classes/Stomp.html

Large diffs are not rendered by default.

149 changes: 82 additions & 67 deletions docs/classes/Versions.html

Large diffs are not rendered by default.

175 changes: 103 additions & 72 deletions docs/coverage.html

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions docs/dependencies.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@
<li class="link">
<a href="interfaces/Transaction.html" data-type="entity-link">Transaction</a>
</li>
<li class="link">
<a href="interfaces/publishParams.html" data-type="entity-link">publishParams</a>
</li>
</ul>
</li>

Expand Down Expand Up @@ -320,6 +323,9 @@
<li class="link">
<a href="interfaces/Transaction.html" data-type="entity-link">Transaction</a>
</li>
<li class="link">
<a href="interfaces/publishParams.html" data-type="entity-link">publishParams</a>
</li>
</ul>
</li>

Expand Down
2 changes: 1 addition & 1 deletion docs/images/coverage-badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@
<li class="link">
<a href="interfaces/Transaction.html" data-type="entity-link">Transaction</a>
</li>
<li class="link">
<a href="interfaces/publishParams.html" data-type="entity-link">publishParams</a>
</li>
</ul>
</li>

Expand Down Expand Up @@ -320,6 +323,9 @@
<li class="link">
<a href="interfaces/Transaction.html" data-type="entity-link">Transaction</a>
</li>
<li class="link">
<a href="interfaces/publishParams.html" data-type="entity-link">publishParams</a>
</li>
</ul>
</li>

Expand Down
149 changes: 82 additions & 67 deletions docs/interfaces/Message.html

Large diffs are not rendered by default.

238 changes: 151 additions & 87 deletions docs/interfaces/StompConfig.html

Large diffs are not rendered by default.

153 changes: 84 additions & 69 deletions docs/interfaces/StompHeaders.html

Large diffs are not rendered by default.

149 changes: 82 additions & 67 deletions docs/interfaces/StompSubscription.html

Large diffs are not rendered by default.

149 changes: 82 additions & 67 deletions docs/interfaces/Transaction.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/js/search/search_index.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions docs/license.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@
<li class="link">
<a href="interfaces/Transaction.html" data-type="entity-link">Transaction</a>
</li>
<li class="link">
<a href="interfaces/publishParams.html" data-type="entity-link">publishParams</a>
</li>
</ul>
</li>

Expand Down Expand Up @@ -320,6 +323,9 @@
<li class="link">
<a href="interfaces/Transaction.html" data-type="entity-link">Transaction</a>
</li>
<li class="link">
<a href="interfaces/publishParams.html" data-type="entity-link">publishParams</a>
</li>
</ul>
</li>

Expand Down
187 changes: 120 additions & 67 deletions docs/miscellaneous/typealiases.html

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions docs/modules.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@
<li class="link">
<a href="interfaces/Transaction.html" data-type="entity-link">Transaction</a>
</li>
<li class="link">
<a href="interfaces/publishParams.html" data-type="entity-link">publishParams</a>
</li>
</ul>
</li>

Expand Down Expand Up @@ -320,6 +323,9 @@
<li class="link">
<a href="interfaces/Transaction.html" data-type="entity-link">Transaction</a>
</li>
<li class="link">
<a href="interfaces/publishParams.html" data-type="entity-link">publishParams</a>
</li>
</ul>
</li>

Expand Down
8 changes: 7 additions & 1 deletion docs/overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@
<li class="link">
<a href="interfaces/Transaction.html" data-type="entity-link">Transaction</a>
</li>
<li class="link">
<a href="interfaces/publishParams.html" data-type="entity-link">publishParams</a>
</li>
</ul>
</li>

Expand Down Expand Up @@ -320,6 +323,9 @@
<li class="link">
<a href="interfaces/Transaction.html" data-type="entity-link">Transaction</a>
</li>
<li class="link">
<a href="interfaces/publishParams.html" data-type="entity-link">publishParams</a>
</li>
</ul>
</li>

Expand Down Expand Up @@ -373,7 +379,7 @@ <h4 class="card-title"><span class="fa fa-file-code-o"></span></h4>
<div class="card text-center">
<div class="card-block">
<h4 class="card-title"><span class="fa fa-info"></span></h4>
<p class="card-text">5 interfaces</p>
<p class="card-text">6 interfaces</p>
</div>
</div>
</div>
Expand Down
144 changes: 83 additions & 61 deletions esm5/client.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { StompHeaders } from "./stomp-headers";
import { StompSubscription } from "./stomp-subscription";
import { Transaction } from "./transaction";
import { frameCallbackType, messageCallbackType } from "./types";
import { StompConfig } from "./stomp-config";
import { closeEventCallbackType, debugFnType, frameCallbackType, messageCallbackType, publishParams } from "./types";
import { StompConfig } from './stomp-config';
/**
* STOMP Client Class.
*/
Expand Down Expand Up @@ -32,12 +32,12 @@ export declare class Client {
/**
* Underlying WebSocket instance, READONLY
*/
readonly webSocket: any;
readonly webSocket: WebSocket;
/**
* Underlying WebSocket instance
* @internal
*/
protected _webSocket: any;
protected _webSocket: WebSocket;
/**
* Connection headers, important keys - `login`, `passcode`, `host`
*/
Expand All @@ -56,31 +56,50 @@ export declare class Client {
onUnhandledMessage: messageCallbackType;
/**
* STOMP brokers can be requested to notify when an operation is actually completed.
*
* TODO: add example
* Prefer using [Client#watchForReceipt]{@link Client#watchForReceipt}. See
* [Client#watchForReceipt]{@link Client#watchForReceipt} for examples.
*/
onUnhandledReceipt: frameCallbackType;
/**
* Will be invoked if we receive an unknown frame type from the STOMP broker
*/
onReceipt: frameCallbackType;
onUnhandledFrame: frameCallbackType;
/**
* `true` if there is a active connection with STOMP Broker
*/
readonly connected: boolean;
private _connected;
/**
* Callback
* Callback, invoked on every successful connection to the STOMP broker.
*
* The actual frame is passed as parameter to the callback.
*/
onConnect: frameCallbackType;
/**
* Callback
* Callback, invoked on every successful disconnection from the STOMP broker. It will not be invoked if
* the STOMP broker disconnected due to an error.
*
* The actual frame is passed as parameter to the callback.
*
* The way STOMP protocol is designed, the connection may close/terminate without the client
* receiving the DISCONNECT frame.
* You might find [Client#onWebSocketClose]{@link Client#onWebSocketClose} more appropriate.
*/
onDisconnect: frameCallbackType;
/**
* Callback
* Callback, invoked on an ERROR frame received from the STOMP Broker.
* A compliant STOMP Broker will close the connection after this type of frame.
*
* The actual frame is passed as parameter to the callback.
*
* See https://stomp.github.io/stomp-specification-1.2.html#ERROR.
*/
onStompError: any;
onStompError: frameCallbackType;
/**
* Callback
* Callback, invoked when underlying WebSocket is closed.
*
* Actual `event` is passed as parameter to the callback.
*/
onWebSocketClose: any;
onWebSocketClose: closeEventCallbackType;
/**
* By default, debug messages are discarded. To log to `console` following can be used:
*
Expand All @@ -93,64 +112,40 @@ export declare class Client {
* This method is called for every actual transmission of the STOMP frames over the
* WebSocket.
*/
debug: (...message: any[]) => void;
debug: debugFnType;
/**
* version of STOMP protocol negotiated with the server, READONLY
*/
readonly version: string;
private _version;
private _subscriptions;
private _partialData;
private _escapeHeaderValues;
private _counter;
private _pinger;
private _ponger;
private _lastServerActivityTS;
private _stompHandler;
private _active;
private _closeReceipt;
private _reconnector;
/**
* Please do not create instance of this class directly, use one of the methods [Stomp.client]{@link Stomp#client},
* [Stomp.over]{@link Stomp#over} in {@link Stomp}.
* Create an instance.
*/
constructor(conf?: StompConfig);
/**
* Update configuration. See {@link StompConfig} for details of configuration options.
*/
configure(conf: StompConfig): void;
private _transmit;
private _setupHeartbeat;
/**
* The `connect` method accepts different number of arguments and types. See the Overloads list. Use the
* version with headers to pass your broker specific options.
*
* ```javascript
* client.connect('guest, 'guest', function(frame) {
* client.debug("connected to Stomp");
* client.subscribe(destination, function(message) {
* $("#messages").append("<p>" + message.body + "</p>\n");
* });
* });
* ```
* Initiate the connection. If the connection breaks it will keep trying to reconnect.
*
* @note When auto reconnect is active, `connectCallback` and `errorCallback` will be called on each connect or error
*
* @see http:*stomp.github.com/stomp-specification-1.2.html#CONNECT_or_STOMP_Frame CONNECT Frame
* Call [Client#deactivate]{@link Client#deactivate} to disconnect and stop reconnection attempts.
*/
connect(): void;
activate(): void;
private _connect;
private _createWebSocket;
private _schedule_reconnect;
/**
* Disconnect from the STOMP broker. To ensure graceful shutdown it sends a DISCONNECT Frame
* and wait till the broker acknowledges.
* Disconnect and stop auto reconnect loop.
*
* disconnectCallback will be called only if the broker was actually connected.
* Appropriate callbacks will be invoked if underlying STOMP connection is connected.
*
* @see http://stomp.github.com/stomp-specification-1.2.html#DISCONNECT DISCONNECT Frame
* See: http://stomp.github.com/stomp-specification-1.2.html#DISCONNECT
*/
disconnect(): void;
private _cleanUp;
deactivate(): void;
private _disposeStompHandler;
/**
* Send a message to a named destination. Refer to your STOMP broker documentation for types
* and naming of destinations. The headers will, typically, be available to the subscriber.
Expand All @@ -159,15 +154,42 @@ export declare class Client {
* Note: Body must be String. You will need to covert the payload to string in case it is not string (e.g. JSON)
*
* ```javascript
* client.send("/queue/test", {priority: 9}, "Hello, STOMP");
* client.send({destination: "/queue/test", headers: {priority: 9}, body: "Hello, STOMP"});
*
* // If you want to send a message with a body, you must also pass the headers argument.
* client.send("/queue/test", {}, "Hello, STOMP");
* // Only destination is mandatory parameter
* client.send({destination: "/queue/test", body: "Hello, STOMP"});
* ```
*
* @see http://stomp.github.com/stomp-specification-1.2.html#SEND SEND Frame
* See: http://stomp.github.com/stomp-specification-1.2.html#SEND SEND Frame
*/
publish(params: publishParams): void;
/**
* Watch for a receipt, callback will receive the STOMP frame as parameter.
*
* The receipt id needs to be unique for each use. Typically a sequence, a UUID, a
* random number or a combination would be used.
*
* Example:
* ```javascript
* // Receipt for Subscription
* let receiptId = randomText();
*
* client.watchForReceipt(receiptId, function() {
* // Will be called after server acknowledges
* });
*
* client.subscribe(TEST.destination, onMessage, {receipt: receiptId});
*
* // Receipt for message send
* receiptId = randomText();
*
* client.watchForReceipt(receiptId, function() {
* // Will be called after server acknowledges
* });
* client.send(TEST.destination, {receipt: receiptId}, msg);
* ```
*/
send(destination: string, headers?: StompHeaders, body?: string): void;
watchForReceipt(receiptId: string, callback: frameCallbackType): void;
/**
* Subscribe to a STOMP Broker location. The callbck will be invoked for each received message with
* the {@link Message} as argument.
Expand All @@ -192,7 +214,7 @@ export declare class Client {
* var subscription = client.subscribe(destination, callback, { id: mySubId });
* ```
*
* @see http://stomp.github.com/stomp-specification-1.2.html#SUBSCRIBE SUBSCRIBE Frame
* See: http://stomp.github.com/stomp-specification-1.2.html#SUBSCRIBE SUBSCRIBE Frame
*/
subscribe(destination: string, callback: messageCallbackType, headers?: StompHeaders): StompSubscription;
/**
Expand All @@ -205,14 +227,14 @@ export declare class Client {
* subscription.unsubscribe();
* ```
*
* @see http://stomp.github.com/stomp-specification-1.2.html#UNSUBSCRIBE UNSUBSCRIBE Frame
* See: http://stomp.github.com/stomp-specification-1.2.html#UNSUBSCRIBE UNSUBSCRIBE Frame
*/
unsubscribe(id: string, headers?: StompHeaders): void;
/**
* Start a transaction, the returned {@link Transaction} has methods - [commit]{@link Transaction#commit}
* and [abort]{@link Transaction#abort}.
*
* @see http://stomp.github.com/stomp-specification-1.2.html#BEGIN BEGIN Frame
* See: http://stomp.github.com/stomp-specification-1.2.html#BEGIN BEGIN Frame
*/
begin(transactionId: string): Transaction;
/**
Expand All @@ -226,7 +248,7 @@ export declare class Client {
* tx.commit();
* ```
*
* @see http://stomp.github.com/stomp-specification-1.2.html#COMMIT COMMIT Frame
* See: http://stomp.github.com/stomp-specification-1.2.html#COMMIT COMMIT Frame
*/
commit(transactionId: string): void;
/**
Expand All @@ -240,7 +262,7 @@ export declare class Client {
* tx.abort();
* ```
*
* @see http://stomp.github.com/stomp-specification-1.2.html#ABORT ABORT Frame
* See: http://stomp.github.com/stomp-specification-1.2.html#ABORT ABORT Frame
*/
abort(transactionId: string): void;
/**
Expand All @@ -256,7 +278,7 @@ export declare class Client {
* client.subscribe(destination, callback, {'ack': 'client'});
* ```
*
* @see http://stomp.github.com/stomp-specification-1.2.html#ACK ACK Frame
* See: http://stomp.github.com/stomp-specification-1.2.html#ACK ACK Frame
*/
ack(messageId: string, subscriptionId: string, headers?: StompHeaders): void;
/**
Expand All @@ -272,7 +294,7 @@ export declare class Client {
* client.subscribe(destination, callback, {'ack': 'client'});
* ```
*
* @see http://stomp.github.com/stomp-specification-1.2.html#NACK NACK Frame
* See: http://stomp.github.com/stomp-specification-1.2.html#NACK NACK Frame
*/
nack(messageId: string, subscriptionId: string, headers?: StompHeaders): void;
}
Loading

0 comments on commit 1d22452

Please sign in to comment.