die heldin script add
This commit is contained in:
149
node_modules/@stomp/stompjs/esm6/compatibility/compat-client.d.ts
generated
vendored
Normal file
149
node_modules/@stomp/stompjs/esm6/compatibility/compat-client.d.ts
generated
vendored
Normal file
@@ -0,0 +1,149 @@
|
||||
import { Client } from '../client';
|
||||
import { StompHeaders } from '../stomp-headers';
|
||||
import { frameCallbackType, messageCallbackType } from '../types';
|
||||
/**
|
||||
* Available for backward compatibility, please shift to using {@link Client}.
|
||||
*
|
||||
* **Deprecated**
|
||||
*
|
||||
* Part of `@stomp/stompjs`.
|
||||
*
|
||||
* To upgrade, please follow the [Upgrade Guide](../additional-documentation/upgrading.html)
|
||||
*/
|
||||
export declare class CompatClient extends Client {
|
||||
/**
|
||||
* It is no op now. No longer needed. Large packets work out of the box.
|
||||
*/
|
||||
maxWebSocketFrameSize: number;
|
||||
/**
|
||||
* Available for backward compatibility, please shift to using {@link Client}
|
||||
* and [Client#webSocketFactory]{@link Client#webSocketFactory}.
|
||||
*
|
||||
* **Deprecated**
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
constructor(webSocketFactory: () => any);
|
||||
private _parseConnect;
|
||||
/**
|
||||
* Available for backward compatibility, please shift to using [Client#activate]{@link Client#activate}.
|
||||
*
|
||||
* **Deprecated**
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* overloads:
|
||||
* - connect(headers, connectCallback)
|
||||
* - connect(headers, connectCallback, errorCallback)
|
||||
* - connect(login, passcode, connectCallback)
|
||||
* - connect(login, passcode, connectCallback, errorCallback)
|
||||
* - connect(login, passcode, connectCallback, errorCallback, closeEventCallback)
|
||||
* - connect(login, passcode, connectCallback, errorCallback, closeEventCallback, host)
|
||||
*
|
||||
* params:
|
||||
* - headers, see [Client#connectHeaders]{@link Client#connectHeaders}
|
||||
* - connectCallback, see [Client#onConnect]{@link Client#onConnect}
|
||||
* - errorCallback, see [Client#onStompError]{@link Client#onStompError}
|
||||
* - closeEventCallback, see [Client#onWebSocketClose]{@link Client#onWebSocketClose}
|
||||
* - login [String], see [Client#connectHeaders](../classes/Client.html#connectHeaders)
|
||||
* - passcode [String], [Client#connectHeaders](../classes/Client.html#connectHeaders)
|
||||
* - host [String], see [Client#connectHeaders](../classes/Client.html#connectHeaders)
|
||||
*
|
||||
* To upgrade, please follow the [Upgrade Guide](../additional-documentation/upgrading.html)
|
||||
*/
|
||||
connect(...args: any[]): void;
|
||||
/**
|
||||
* Available for backward compatibility, please shift to using [Client#deactivate]{@link Client#deactivate}.
|
||||
*
|
||||
* **Deprecated**
|
||||
*
|
||||
* See:
|
||||
* [Client#onDisconnect]{@link Client#onDisconnect}, and
|
||||
* [Client#disconnectHeaders]{@link Client#disconnectHeaders}
|
||||
*
|
||||
* To upgrade, please follow the [Upgrade Guide](../additional-documentation/upgrading.html)
|
||||
*/
|
||||
disconnect(disconnectCallback?: any, headers?: StompHeaders): void;
|
||||
/**
|
||||
* Available for backward compatibility, use [Client#publish]{@link Client#publish}.
|
||||
*
|
||||
* 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.
|
||||
* However, there may be special purpose headers corresponding to your STOMP broker.
|
||||
*
|
||||
* **Deprecated**, use [Client#publish]{@link Client#publish}
|
||||
*
|
||||
* 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");
|
||||
*
|
||||
* // If you want to send a message with a body, you must also pass the headers argument.
|
||||
* client.send("/queue/test", {}, "Hello, STOMP");
|
||||
* ```
|
||||
*
|
||||
* To upgrade, please follow the [Upgrade Guide](../additional-documentation/upgrading.html)
|
||||
*/
|
||||
send(destination: string, headers?: {
|
||||
[key: string]: any;
|
||||
}, body?: string): void;
|
||||
/**
|
||||
* Available for backward compatibility, renamed to [Client#reconnectDelay]{@link Client#reconnectDelay}.
|
||||
*
|
||||
* **Deprecated**
|
||||
*/
|
||||
reconnect_delay: number;
|
||||
/**
|
||||
* Available for backward compatibility, renamed to [Client#webSocket]{@link Client#webSocket}.
|
||||
*
|
||||
* **Deprecated**
|
||||
*/
|
||||
readonly ws: any;
|
||||
/**
|
||||
* Available for backward compatibility, renamed to [Client#connectedVersion]{@link Client#connectedVersion}.
|
||||
*
|
||||
* **Deprecated**
|
||||
*/
|
||||
readonly version: string;
|
||||
/**
|
||||
* Available for backward compatibility, renamed to [Client#onUnhandledMessage]{@link Client#onUnhandledMessage}.
|
||||
*
|
||||
* **Deprecated**
|
||||
*/
|
||||
/**
|
||||
* Available for backward compatibility, renamed to [Client#onUnhandledMessage]{@link Client#onUnhandledMessage}.
|
||||
*
|
||||
* **Deprecated**
|
||||
*/
|
||||
onreceive: messageCallbackType;
|
||||
/**
|
||||
* Available for backward compatibility, renamed to [Client#onUnhandledReceipt]{@link Client#onUnhandledReceipt}.
|
||||
* Prefer using [Client#watchForReceipt]{@link Client#watchForReceipt}.
|
||||
*
|
||||
* **Deprecated**
|
||||
*/
|
||||
/**
|
||||
* Available for backward compatibility, renamed to [Client#onUnhandledReceipt]{@link Client#onUnhandledReceipt}.
|
||||
*
|
||||
* **Deprecated**
|
||||
*/
|
||||
onreceipt: frameCallbackType;
|
||||
private _heartbeatInfo;
|
||||
/**
|
||||
* Available for backward compatibility, renamed to [Client#heartbeatIncoming]{@link Client#heartbeatIncoming}
|
||||
* [Client#heartbeatOutgoing]{@link Client#heartbeatOutgoing}.
|
||||
*
|
||||
* **Deprecated**
|
||||
*/
|
||||
/**
|
||||
* Available for backward compatibility, renamed to [Client#heartbeatIncoming]{@link Client#heartbeatIncoming}
|
||||
* [Client#heartbeatOutgoing]{@link Client#heartbeatOutgoing}.
|
||||
*
|
||||
* **Deprecated**
|
||||
*/
|
||||
heartbeat: {
|
||||
incoming: number;
|
||||
outgoing: number;
|
||||
};
|
||||
}
|
||||
241
node_modules/@stomp/stompjs/esm6/compatibility/compat-client.js
generated
vendored
Normal file
241
node_modules/@stomp/stompjs/esm6/compatibility/compat-client.js
generated
vendored
Normal file
@@ -0,0 +1,241 @@
|
||||
import { Client } from '../client';
|
||||
import { HeartbeatInfo } from './heartbeat-info';
|
||||
/**
|
||||
* Available for backward compatibility, please shift to using {@link Client}.
|
||||
*
|
||||
* **Deprecated**
|
||||
*
|
||||
* Part of `@stomp/stompjs`.
|
||||
*
|
||||
* To upgrade, please follow the [Upgrade Guide](../additional-documentation/upgrading.html)
|
||||
*/
|
||||
export class CompatClient extends Client {
|
||||
/**
|
||||
* Available for backward compatibility, please shift to using {@link Client}
|
||||
* and [Client#webSocketFactory]{@link Client#webSocketFactory}.
|
||||
*
|
||||
* **Deprecated**
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
constructor(webSocketFactory) {
|
||||
super();
|
||||
/**
|
||||
* It is no op now. No longer needed. Large packets work out of the box.
|
||||
*/
|
||||
this.maxWebSocketFrameSize = 16 * 1024;
|
||||
this._heartbeatInfo = new HeartbeatInfo(this);
|
||||
this.reconnect_delay = 0;
|
||||
this.webSocketFactory = webSocketFactory;
|
||||
// Default from previous version
|
||||
this.debug = (...message) => {
|
||||
console.log(...message);
|
||||
};
|
||||
}
|
||||
_parseConnect(...args) {
|
||||
let closeEventCallback;
|
||||
let connectCallback;
|
||||
let errorCallback;
|
||||
let headers = {};
|
||||
if (args.length < 2) {
|
||||
throw new Error('Connect requires at least 2 arguments');
|
||||
}
|
||||
if (typeof args[1] === 'function') {
|
||||
[headers, connectCallback, errorCallback, closeEventCallback] = args;
|
||||
}
|
||||
else {
|
||||
switch (args.length) {
|
||||
case 6:
|
||||
[
|
||||
headers.login,
|
||||
headers.passcode,
|
||||
connectCallback,
|
||||
errorCallback,
|
||||
closeEventCallback,
|
||||
headers.host,
|
||||
] = args;
|
||||
break;
|
||||
default:
|
||||
[
|
||||
headers.login,
|
||||
headers.passcode,
|
||||
connectCallback,
|
||||
errorCallback,
|
||||
closeEventCallback,
|
||||
] = args;
|
||||
}
|
||||
}
|
||||
return [headers, connectCallback, errorCallback, closeEventCallback];
|
||||
}
|
||||
/**
|
||||
* Available for backward compatibility, please shift to using [Client#activate]{@link Client#activate}.
|
||||
*
|
||||
* **Deprecated**
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* overloads:
|
||||
* - connect(headers, connectCallback)
|
||||
* - connect(headers, connectCallback, errorCallback)
|
||||
* - connect(login, passcode, connectCallback)
|
||||
* - connect(login, passcode, connectCallback, errorCallback)
|
||||
* - connect(login, passcode, connectCallback, errorCallback, closeEventCallback)
|
||||
* - connect(login, passcode, connectCallback, errorCallback, closeEventCallback, host)
|
||||
*
|
||||
* params:
|
||||
* - headers, see [Client#connectHeaders]{@link Client#connectHeaders}
|
||||
* - connectCallback, see [Client#onConnect]{@link Client#onConnect}
|
||||
* - errorCallback, see [Client#onStompError]{@link Client#onStompError}
|
||||
* - closeEventCallback, see [Client#onWebSocketClose]{@link Client#onWebSocketClose}
|
||||
* - login [String], see [Client#connectHeaders](../classes/Client.html#connectHeaders)
|
||||
* - passcode [String], [Client#connectHeaders](../classes/Client.html#connectHeaders)
|
||||
* - host [String], see [Client#connectHeaders](../classes/Client.html#connectHeaders)
|
||||
*
|
||||
* To upgrade, please follow the [Upgrade Guide](../additional-documentation/upgrading.html)
|
||||
*/
|
||||
connect(...args) {
|
||||
const out = this._parseConnect(...args);
|
||||
if (out[0]) {
|
||||
this.connectHeaders = out[0];
|
||||
}
|
||||
if (out[1]) {
|
||||
this.onConnect = out[1];
|
||||
}
|
||||
if (out[2]) {
|
||||
this.onStompError = out[2];
|
||||
}
|
||||
if (out[3]) {
|
||||
this.onWebSocketClose = out[3];
|
||||
}
|
||||
super.activate();
|
||||
}
|
||||
/**
|
||||
* Available for backward compatibility, please shift to using [Client#deactivate]{@link Client#deactivate}.
|
||||
*
|
||||
* **Deprecated**
|
||||
*
|
||||
* See:
|
||||
* [Client#onDisconnect]{@link Client#onDisconnect}, and
|
||||
* [Client#disconnectHeaders]{@link Client#disconnectHeaders}
|
||||
*
|
||||
* To upgrade, please follow the [Upgrade Guide](../additional-documentation/upgrading.html)
|
||||
*/
|
||||
disconnect(disconnectCallback, headers = {}) {
|
||||
if (disconnectCallback) {
|
||||
this.onDisconnect = disconnectCallback;
|
||||
}
|
||||
this.disconnectHeaders = headers;
|
||||
super.deactivate();
|
||||
}
|
||||
/**
|
||||
* Available for backward compatibility, use [Client#publish]{@link Client#publish}.
|
||||
*
|
||||
* 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.
|
||||
* However, there may be special purpose headers corresponding to your STOMP broker.
|
||||
*
|
||||
* **Deprecated**, use [Client#publish]{@link Client#publish}
|
||||
*
|
||||
* 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");
|
||||
*
|
||||
* // If you want to send a message with a body, you must also pass the headers argument.
|
||||
* client.send("/queue/test", {}, "Hello, STOMP");
|
||||
* ```
|
||||
*
|
||||
* To upgrade, please follow the [Upgrade Guide](../additional-documentation/upgrading.html)
|
||||
*/
|
||||
send(destination, headers = {}, body = '') {
|
||||
headers = Object.assign({}, headers);
|
||||
const skipContentLengthHeader = headers['content-length'] === false;
|
||||
if (skipContentLengthHeader) {
|
||||
delete headers['content-length'];
|
||||
}
|
||||
this.publish({
|
||||
destination,
|
||||
headers: headers,
|
||||
body,
|
||||
skipContentLengthHeader,
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Available for backward compatibility, renamed to [Client#reconnectDelay]{@link Client#reconnectDelay}.
|
||||
*
|
||||
* **Deprecated**
|
||||
*/
|
||||
set reconnect_delay(value) {
|
||||
this.reconnectDelay = value;
|
||||
}
|
||||
/**
|
||||
* Available for backward compatibility, renamed to [Client#webSocket]{@link Client#webSocket}.
|
||||
*
|
||||
* **Deprecated**
|
||||
*/
|
||||
get ws() {
|
||||
return this.webSocket;
|
||||
}
|
||||
/**
|
||||
* Available for backward compatibility, renamed to [Client#connectedVersion]{@link Client#connectedVersion}.
|
||||
*
|
||||
* **Deprecated**
|
||||
*/
|
||||
get version() {
|
||||
return this.connectedVersion;
|
||||
}
|
||||
/**
|
||||
* Available for backward compatibility, renamed to [Client#onUnhandledMessage]{@link Client#onUnhandledMessage}.
|
||||
*
|
||||
* **Deprecated**
|
||||
*/
|
||||
get onreceive() {
|
||||
return this.onUnhandledMessage;
|
||||
}
|
||||
/**
|
||||
* Available for backward compatibility, renamed to [Client#onUnhandledMessage]{@link Client#onUnhandledMessage}.
|
||||
*
|
||||
* **Deprecated**
|
||||
*/
|
||||
set onreceive(value) {
|
||||
this.onUnhandledMessage = value;
|
||||
}
|
||||
/**
|
||||
* Available for backward compatibility, renamed to [Client#onUnhandledReceipt]{@link Client#onUnhandledReceipt}.
|
||||
* Prefer using [Client#watchForReceipt]{@link Client#watchForReceipt}.
|
||||
*
|
||||
* **Deprecated**
|
||||
*/
|
||||
get onreceipt() {
|
||||
return this.onUnhandledReceipt;
|
||||
}
|
||||
/**
|
||||
* Available for backward compatibility, renamed to [Client#onUnhandledReceipt]{@link Client#onUnhandledReceipt}.
|
||||
*
|
||||
* **Deprecated**
|
||||
*/
|
||||
set onreceipt(value) {
|
||||
this.onUnhandledReceipt = value;
|
||||
}
|
||||
/**
|
||||
* Available for backward compatibility, renamed to [Client#heartbeatIncoming]{@link Client#heartbeatIncoming}
|
||||
* [Client#heartbeatOutgoing]{@link Client#heartbeatOutgoing}.
|
||||
*
|
||||
* **Deprecated**
|
||||
*/
|
||||
get heartbeat() {
|
||||
return this._heartbeatInfo;
|
||||
}
|
||||
/**
|
||||
* Available for backward compatibility, renamed to [Client#heartbeatIncoming]{@link Client#heartbeatIncoming}
|
||||
* [Client#heartbeatOutgoing]{@link Client#heartbeatOutgoing}.
|
||||
*
|
||||
* **Deprecated**
|
||||
*/
|
||||
set heartbeat(value) {
|
||||
this.heartbeatIncoming = value.incoming;
|
||||
this.heartbeatOutgoing = value.outgoing;
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=compat-client.js.map
|
||||
1
node_modules/@stomp/stompjs/esm6/compatibility/compat-client.js.map
generated
vendored
Normal file
1
node_modules/@stomp/stompjs/esm6/compatibility/compat-client.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"compat-client.js","sourceRoot":"","sources":["../../src/compatibility/compat-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGnC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD;;;;;;;;GAQG;AACH,MAAM,OAAO,YAAa,SAAQ,MAAM;IAMtC;;;;;;;OAOG;IACH,YAAY,gBAA2B;QACrC,KAAK,EAAE,CAAC;QAdV;;WAEG;QACI,0BAAqB,GAAW,EAAE,GAAG,IAAI,CAAC;QAoOzC,mBAAc,GAAkB,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC;QAxN9D,IAAI,CAAC,eAAe,GAAG,CAAC,CAAC;QACzB,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,gCAAgC;QAChC,IAAI,CAAC,KAAK,GAAG,CAAC,GAAG,OAAc,EAAE,EAAE;YACjC,OAAO,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC;QAC1B,CAAC,CAAC;IACJ,CAAC;IAEO,aAAa,CAAC,GAAG,IAAW;QAClC,IAAI,kBAAkB,CAAC;QACvB,IAAI,eAAe,CAAC;QACpB,IAAI,aAAa,CAAC;QAClB,IAAI,OAAO,GAAiB,EAAE,CAAC;QAC/B,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE;YACnB,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;SAC1D;QACD,IAAI,OAAO,IAAI,CAAC,CAAC,CAAC,KAAK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ID;;;;;OAKG;IACH,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,cAAc,CAAC;IAC7B,CAAC;IAED;;;;;OAKG;IACH,IAAI,SAAS,CAAC,KAA6C;QACzD,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC,QAAQ,CAAC;QACxC,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC,QAAQ,CAAC;IAC1C,CAAC;CACF"}
|
||||
12
node_modules/@stomp/stompjs/esm6/compatibility/heartbeat-info.d.ts
generated
vendored
Normal file
12
node_modules/@stomp/stompjs/esm6/compatibility/heartbeat-info.d.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import { CompatClient } from './compat-client';
|
||||
/**
|
||||
* Part of `@stomp/stompjs`.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
export declare class HeartbeatInfo {
|
||||
private client;
|
||||
constructor(client: CompatClient);
|
||||
outgoing: number;
|
||||
incoming: number;
|
||||
}
|
||||
23
node_modules/@stomp/stompjs/esm6/compatibility/heartbeat-info.js
generated
vendored
Normal file
23
node_modules/@stomp/stompjs/esm6/compatibility/heartbeat-info.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* Part of `@stomp/stompjs`.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
export class HeartbeatInfo {
|
||||
constructor(client) {
|
||||
this.client = client;
|
||||
}
|
||||
get outgoing() {
|
||||
return this.client.heartbeatOutgoing;
|
||||
}
|
||||
set outgoing(value) {
|
||||
this.client.heartbeatOutgoing = value;
|
||||
}
|
||||
get incoming() {
|
||||
return this.client.heartbeatIncoming;
|
||||
}
|
||||
set incoming(value) {
|
||||
this.client.heartbeatIncoming = value;
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=heartbeat-info.js.map
|
||||
1
node_modules/@stomp/stompjs/esm6/compatibility/heartbeat-info.js.map
generated
vendored
Normal file
1
node_modules/@stomp/stompjs/esm6/compatibility/heartbeat-info.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"heartbeat-info.js","sourceRoot":"","sources":["../../src/compatibility/heartbeat-info.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,OAAO,aAAa;IACxB,YAAoB,MAAoB;QAApB,WAAM,GAAN,MAAM,CAAc;IAAG,CAAC;IAE5C,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC;IACvC,CAAC;IAED,IAAI,QAAQ,CAAC,KAAa;QACxB,IAAI,CAAC,MAAM,CAAC,iBAAiB,GAAG,KAAK,CAAC;IACxC,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC;IACvC,CAAC;IAED,IAAI,QAAQ,CAAC,KAAa;QACxB,IAAI,CAAC,MAAM,CAAC,iBAAiB,GAAG,KAAK,CAAC;IACxC,CAAC;CACF"}
|
||||
67
node_modules/@stomp/stompjs/esm6/compatibility/stomp.d.ts
generated
vendored
Normal file
67
node_modules/@stomp/stompjs/esm6/compatibility/stomp.d.ts
generated
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
import { CompatClient } from './compat-client';
|
||||
/**
|
||||
* STOMP Class, acts like a factory to create {@link Client}.
|
||||
*
|
||||
* Part of `@stomp/stompjs`.
|
||||
*
|
||||
* **Deprecated**
|
||||
*
|
||||
* It will be removed in next major version. Please switch to {@link Client}.
|
||||
*/
|
||||
export declare class Stomp {
|
||||
/**
|
||||
* In case you need to use a non standard class for WebSocket.
|
||||
*
|
||||
* For example when using within NodeJS environment:
|
||||
*
|
||||
* ```javascript
|
||||
* StompJs = require('../../esm5/');
|
||||
* Stomp = StompJs.Stomp;
|
||||
* Stomp.WebSocketClass = require('websocket').w3cwebsocket;
|
||||
* ```
|
||||
*
|
||||
* **Deprecated**
|
||||
*
|
||||
*
|
||||
* It will be removed in next major version. Please switch to {@link Client}
|
||||
* using [Client#webSocketFactory]{@link Client#webSocketFactory}.
|
||||
*/
|
||||
static WebSocketClass: any;
|
||||
/**
|
||||
* This method creates a WebSocket client that is connected to
|
||||
* the STOMP server located at the url.
|
||||
*
|
||||
* ```javascript
|
||||
* var url = "ws://localhost:61614/stomp";
|
||||
* var client = Stomp.client(url);
|
||||
* ```
|
||||
*
|
||||
* **Deprecated**
|
||||
*
|
||||
* It will be removed in next major version. Please switch to {@link Client}
|
||||
* using [Client#brokerURL]{@link Client#brokerURL}.
|
||||
*/
|
||||
static client(url: string, protocols?: string[]): CompatClient;
|
||||
/**
|
||||
* This method is an alternative to [Stomp#client]{@link Stomp#client} to let the user
|
||||
* specify the WebSocket to use (either a standard HTML5 WebSocket or
|
||||
* a similar object).
|
||||
*
|
||||
* In order to support reconnection, the function Client._connect should be callable more than once.
|
||||
* While reconnecting
|
||||
* a new instance of underlying transport (TCP Socket, WebSocket or SockJS) will be needed. So, this function
|
||||
* alternatively allows passing a function that should return a new instance of the underlying socket.
|
||||
*
|
||||
* ```javascript
|
||||
* var client = Stomp.over(function(){
|
||||
* return new WebSocket('ws://localhost:15674/ws')
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
* **Deprecated**
|
||||
*
|
||||
* It will be removed in next major version. Please switch to {@link Client}
|
||||
* using [Client#webSocketFactory]{@link Client#webSocketFactory}.
|
||||
*/
|
||||
static over(ws: any): CompatClient;
|
||||
}
|
||||
102
node_modules/@stomp/stompjs/esm6/compatibility/stomp.js
generated
vendored
Normal file
102
node_modules/@stomp/stompjs/esm6/compatibility/stomp.js
generated
vendored
Normal file
@@ -0,0 +1,102 @@
|
||||
import { Versions } from '../versions';
|
||||
import { CompatClient } from './compat-client';
|
||||
/**
|
||||
* STOMP Class, acts like a factory to create {@link Client}.
|
||||
*
|
||||
* Part of `@stomp/stompjs`.
|
||||
*
|
||||
* **Deprecated**
|
||||
*
|
||||
* It will be removed in next major version. Please switch to {@link Client}.
|
||||
*/
|
||||
export class Stomp {
|
||||
/**
|
||||
* This method creates a WebSocket client that is connected to
|
||||
* the STOMP server located at the url.
|
||||
*
|
||||
* ```javascript
|
||||
* var url = "ws://localhost:61614/stomp";
|
||||
* var client = Stomp.client(url);
|
||||
* ```
|
||||
*
|
||||
* **Deprecated**
|
||||
*
|
||||
* It will be removed in next major version. Please switch to {@link Client}
|
||||
* using [Client#brokerURL]{@link Client#brokerURL}.
|
||||
*/
|
||||
static client(url, protocols) {
|
||||
// This is a hack to allow another implementation than the standard
|
||||
// HTML5 WebSocket class.
|
||||
//
|
||||
// It is possible to use another class by calling
|
||||
//
|
||||
// Stomp.WebSocketClass = MozWebSocket
|
||||
//
|
||||
// *prior* to call `Stomp.client()`.
|
||||
//
|
||||
// This hack is deprecated and `Stomp.over()` method should be used
|
||||
// instead.
|
||||
// See remarks on the function Stomp.over
|
||||
if (protocols == null) {
|
||||
protocols = Versions.default.protocolVersions();
|
||||
}
|
||||
const wsFn = () => {
|
||||
const klass = Stomp.WebSocketClass || WebSocket;
|
||||
return new klass(url, protocols);
|
||||
};
|
||||
return new CompatClient(wsFn);
|
||||
}
|
||||
/**
|
||||
* This method is an alternative to [Stomp#client]{@link Stomp#client} to let the user
|
||||
* specify the WebSocket to use (either a standard HTML5 WebSocket or
|
||||
* a similar object).
|
||||
*
|
||||
* In order to support reconnection, the function Client._connect should be callable more than once.
|
||||
* While reconnecting
|
||||
* a new instance of underlying transport (TCP Socket, WebSocket or SockJS) will be needed. So, this function
|
||||
* alternatively allows passing a function that should return a new instance of the underlying socket.
|
||||
*
|
||||
* ```javascript
|
||||
* var client = Stomp.over(function(){
|
||||
* return new WebSocket('ws://localhost:15674/ws')
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
* **Deprecated**
|
||||
*
|
||||
* It will be removed in next major version. Please switch to {@link Client}
|
||||
* using [Client#webSocketFactory]{@link Client#webSocketFactory}.
|
||||
*/
|
||||
static over(ws) {
|
||||
let wsFn;
|
||||
if (typeof ws === 'function') {
|
||||
wsFn = ws;
|
||||
}
|
||||
else {
|
||||
console.warn('Stomp.over did not receive a factory, auto reconnect will not work. ' +
|
||||
'Please see https://stomp-js.github.io/api-docs/latest/classes/Stomp.html#over');
|
||||
wsFn = () => ws;
|
||||
}
|
||||
return new CompatClient(wsFn);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* In case you need to use a non standard class for WebSocket.
|
||||
*
|
||||
* For example when using within NodeJS environment:
|
||||
*
|
||||
* ```javascript
|
||||
* StompJs = require('../../esm5/');
|
||||
* Stomp = StompJs.Stomp;
|
||||
* Stomp.WebSocketClass = require('websocket').w3cwebsocket;
|
||||
* ```
|
||||
*
|
||||
* **Deprecated**
|
||||
*
|
||||
*
|
||||
* It will be removed in next major version. Please switch to {@link Client}
|
||||
* using [Client#webSocketFactory]{@link Client#webSocketFactory}.
|
||||
*/
|
||||
// tslint:disable-next-line:variable-name
|
||||
Stomp.WebSocketClass = null;
|
||||
//# sourceMappingURL=stomp.js.map
|
||||
1
node_modules/@stomp/stompjs/esm6/compatibility/stomp.js.map
generated
vendored
Normal file
1
node_modules/@stomp/stompjs/esm6/compatibility/stomp.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"stomp.js","sourceRoot":"","sources":["../../src/compatibility/stomp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAW/C;;;;;;;;GAQG;AACH,MAAM,OAAO,KAAK;IAqBhB;;;;;;;;;;;;;OAaG;IACI,MAAM,CAAC,MAAM,CAAC,GAAW,EAAE,SAAoB;QACpD,mEAAmE;QACnE,yBAAyB;QACzB,EAAE;QACF,iDAAiD;QACjD,EAAE;QACF,0CAA0C;QAC1C,EAAE;QACF,oCAAoC;QACpC,EAAE;QACF,mEAAmE;QACnE,WAAW;QAEX,yCAAyC;QACzC,IAAI,SAAS,IAAI,IAAI,EAAE;YACrB,SAAS,GAAG,QAAQ,CAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC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