motion-master-client 0.0.47 → 0.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
package/src/index.js
CHANGED
|
@@ -26,4 +26,5 @@ tslib_1.__exportStar(require("./lib/system-log-line"), exports);
|
|
|
26
26
|
tslib_1.__exportStar(require("./lib/types"), exports);
|
|
27
27
|
tslib_1.__exportStar(require("./lib/urls"), exports);
|
|
28
28
|
tslib_1.__exportStar(require("./lib/util"), exports);
|
|
29
|
+
tslib_1.__exportStar(require("./lib/web-socket-connection-close-codes"), exports);
|
|
29
30
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/motion-master-client/src/index.ts"],"names":[],"mappings":";;;AAAA,uDAA6B;AAC7B,4DAAkC;AAClC,gEAAsC;AACtC,iEAAuC;AACvC,uDAA6B;AAC7B,qEAA2C;AAC3C,kEAAwC;AACxC,iEAAuC;AACvC,qEAA2C;AAC3C,6EAAmD;AACnD,6EAAmD;AACnD,iFAAuD;AACvD,oFAA0D;AAC1D,6EAAmD;AACnD,6EAAmD;AACnD,iFAAuD;AACvD,oFAA0D;AAC1D,0DAAgC;AAChC,wDAA8B;AAC9B,0DAAgC;AAChC,wEAA8C;AAC9C,gEAAsC;AACtC,sDAA4B;AAC5B,qDAA2B;AAC3B,qDAA2B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/motion-master-client/src/index.ts"],"names":[],"mappings":";;;AAAA,uDAA6B;AAC7B,4DAAkC;AAClC,gEAAsC;AACtC,iEAAuC;AACvC,uDAA6B;AAC7B,qEAA2C;AAC3C,kEAAwC;AACxC,iEAAuC;AACvC,qEAA2C;AAC3C,6EAAmD;AACnD,6EAAmD;AACnD,iFAAuD;AACvD,oFAA0D;AAC1D,6EAAmD;AACnD,6EAAmD;AACnD,iFAAuD;AACvD,oFAA0D;AAC1D,0DAAgC;AAChC,wDAA8B;AAC9B,0DAAgC;AAChC,wEAA8C;AAC9C,gEAAsC;AACtC,sDAA4B;AAC5B,qDAA2B;AAC3B,qDAA2B;AAC3B,kFAAwD"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.webSocketConnectionCloseCodes = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent/code
|
|
6
|
+
*/
|
|
7
|
+
exports.webSocketConnectionCloseCodes = [
|
|
8
|
+
{
|
|
9
|
+
statusCode: 1000,
|
|
10
|
+
meaning: 'Normal Closure',
|
|
11
|
+
description: 'The connection successfully completed the purpose for which it was created.',
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
statusCode: 1001,
|
|
15
|
+
meaning: 'Going Away',
|
|
16
|
+
description: 'The endpoint is going away, either because of a server failure or because the browser is navigating away from the page that opened the connection.',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
statusCode: 1002,
|
|
20
|
+
meaning: 'Protocol error',
|
|
21
|
+
description: 'The endpoint is terminating the connection due to a protocol error.',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
statusCode: 1003,
|
|
25
|
+
meaning: 'Unsupported Data',
|
|
26
|
+
description: 'The connection is being terminated because the endpoint received data of a type it cannot accept. (For example, a text-only endpoint received binary data.)',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
statusCode: 1004,
|
|
30
|
+
meaning: 'Reserved',
|
|
31
|
+
description: 'Reserved. A meaning might be defined in the future.',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
statusCode: 1005,
|
|
35
|
+
meaning: 'No Status Rcvd',
|
|
36
|
+
description: 'Reserved. Indicates that no status code was provided even though one was expected.',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
statusCode: 1006,
|
|
40
|
+
meaning: 'Abnormal Closure',
|
|
41
|
+
description: 'Reserved. Indicates that a connection was closed abnormally (that is, with no close frame being sent) when a status code is expected.',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
statusCode: 1007,
|
|
45
|
+
meaning: 'Invalid frame payload data',
|
|
46
|
+
description: 'The endpoint is terminating the connection because a message was received that contained inconsistent data (e.g., non-UTF-8 data within a text message).',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
statusCode: 1008,
|
|
50
|
+
meaning: 'Policy Violation',
|
|
51
|
+
description: 'The endpoint is terminating the connection because it received a message that violates its policy. This is a generic status code, used when codes 1003 and 1009 are not suitable.',
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
statusCode: 1009,
|
|
55
|
+
meaning: 'Message Too Big',
|
|
56
|
+
description: 'The endpoint is terminating the connection because a data frame was received that is too large.',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
statusCode: 1010,
|
|
60
|
+
meaning: 'Mandatory Ext.',
|
|
61
|
+
description: 'The client is terminating the connection because it expected the server to negotiate one or more extension, but the server didn\'t.',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
statusCode: 1011,
|
|
65
|
+
meaning: 'Internal Error',
|
|
66
|
+
description: 'The server is terminating the connection because it encountered an unexpected condition that prevented it from fulfilling the request.',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
statusCode: 1012,
|
|
70
|
+
meaning: 'Service Restart',
|
|
71
|
+
description: 'The server is terminating the connection because it is restarting.',
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
statusCode: 1013,
|
|
75
|
+
meaning: 'Try Again Later',
|
|
76
|
+
description: 'The server is terminating the connection due to a temporary condition, e.g. it is overloaded and is casting off some of its clients.',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
statusCode: 1014,
|
|
80
|
+
meaning: 'Bad Gateway',
|
|
81
|
+
description: 'The server was acting as a gateway or proxy and received an invalid response from the upstream server. This is similar to 502 HTTP Status Code.',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
statusCode: 1015,
|
|
85
|
+
meaning: 'TLS handshake',
|
|
86
|
+
description: 'Reserved. Indicates that the connection was closed due to a failure to perform a TLS handshake (e.g., the server certificate can\'t be verified).',
|
|
87
|
+
},
|
|
88
|
+
];
|
|
89
|
+
//# sourceMappingURL=web-socket-connection-close-codes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-socket-connection-close-codes.js","sourceRoot":"","sources":["../../../../../libs/motion-master-client/src/lib/web-socket-connection-close-codes.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACU,QAAA,6BAA6B,GAAG;IAC3C;QACE,UAAU,EAAE,IAAI;QAChB,OAAO,EAAE,gBAAgB;QACzB,WAAW,EAAE,6EAA6E;KAC3F;IACD;QACE,UAAU,EAAE,IAAI;QAChB,OAAO,EAAE,YAAY;QACrB,WAAW,EAAE,oJAAoJ;KAClK;IACD;QACE,UAAU,EAAE,IAAI;QAChB,OAAO,EAAE,gBAAgB;QACzB,WAAW,EAAE,qEAAqE;KACnF;IACD;QACE,UAAU,EAAE,IAAI;QAChB,OAAO,EAAE,kBAAkB;QAC3B,WAAW,EAAE,6JAA6J;KAC3K;IACD;QACE,UAAU,EAAE,IAAI;QAChB,OAAO,EAAE,UAAU;QACnB,WAAW,EAAE,qDAAqD;KACnE;IACD;QACE,UAAU,EAAE,IAAI;QAChB,OAAO,EAAE,gBAAgB;QACzB,WAAW,EAAE,oFAAoF;KAClG;IACD;QACE,UAAU,EAAE,IAAI;QAChB,OAAO,EAAE,kBAAkB;QAC3B,WAAW,EAAE,uIAAuI;KACrJ;IACD;QACE,UAAU,EAAE,IAAI;QAChB,OAAO,EAAE,4BAA4B;QACrC,WAAW,EAAE,0JAA0J;KACxK;IACD;QACE,UAAU,EAAE,IAAI;QAChB,OAAO,EAAE,kBAAkB;Q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