@cimo/websocket 1.5.51 → 1.5.53

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/README.md CHANGED
@@ -35,12 +35,12 @@ import * as ControllerTest from "../controller/Test";
35
35
 
36
36
  const cwsServer = new CwsServer(server, "secret-key");
37
37
 
38
- ControllerTester.websocket(cwsServer);
38
+ ControllerTest.websocket(cwsServer);
39
39
 
40
40
  ...
41
41
  ```
42
42
 
43
- - ControllerTester.ts
43
+ - ControllerTest.ts
44
44
 
45
45
  ```
46
46
  ...
@@ -73,6 +73,8 @@ import CwsClient from "@cimo/websocket/dist/src/client/Manager";
73
73
 
74
74
  const cwsClient = new CwsClient("wss://localhost");
75
75
 
76
+ this.cwsClient.open();
77
+
76
78
  this.cwsClient.checkStatus("connection", () => {
77
79
  cwsClient.receiveData("action_test", (data) => {
78
80
  console.log(data);
@@ -1,7 +1,7 @@
1
1
  import { TSESTree } from "@typescript-eslint/utils";
2
2
  import { RuleContext } from "@typescript-eslint/utils/dist/ts-eslint";
3
3
  export declare const rules: {
4
- "disallow-array-for-object-type": {
4
+ "no-array-assignment-for-object-type": {
5
5
  meta: {
6
6
  type: string;
7
7
  docs: {
@@ -9,11 +9,11 @@ export declare const rules: {
9
9
  recommended: boolean;
10
10
  };
11
11
  messages: {
12
- disallowArrayForObjectType: string;
12
+ noArrayAssignmentForObjectType: string;
13
13
  };
14
14
  schema: never[];
15
15
  };
16
- create(context: RuleContext<"disallowArrayForObjectType", []>): {
16
+ create(context: RuleContext<"noArrayAssignmentForObjectType", []>): {
17
17
  TSArrayType(node: TSESTree.TSArrayType): void;
18
18
  };
19
19
  };
@@ -3,15 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.rules = void 0;
4
4
  const utils_1 = require("@typescript-eslint/utils");
5
5
  exports.rules = {
6
- "disallow-array-for-object-type": {
6
+ "no-array-assignment-for-object-type": {
7
7
  meta: {
8
8
  type: "problem",
9
9
  docs: {
10
- description: "Disallow array for object type.",
10
+ description: "Safe array assignment for object type.",
11
11
  recommended: false
12
12
  },
13
13
  messages: {
14
- disallowArrayForObjectType: "Array for object type are disallowed."
14
+ noArrayAssignmentForObjectType: "Array assign for object type is disallowed."
15
15
  },
16
16
  schema: []
17
17
  },
@@ -26,7 +26,7 @@ exports.rules = {
26
26
  if (indexType) {
27
27
  context.report({
28
28
  node,
29
- messageId: "disallowArrayForObjectType"
29
+ messageId: "noArrayAssignmentForObjectType"
30
30
  });
31
31
  }
32
32
  }
@@ -1 +1 @@
1
- {"version":3,"file":"eslint.customRule.js","sourceRoot":"","sources":["../eslint.customRule.ts"],"names":[],"mappings":";;;AAAA,oDAAiE;AAGpD,QAAA,KAAK,GAAG;IACjB,gCAAgC,EAAE;QAC9B,IAAI,EAAE;YACF,IAAI,EAAE,SAAS;YACf,IAAI,EAAE;gBACF,WAAW,EAAE,iCAAiC;gBAC9C,WAAW,EAAE,KAAK;aACrB;YACD,QAAQ,EAAE;gBACN,0BAA0B,EAAE,uCAAuC;aACtE;YACD,MAAM,EAAE,EAAE;SACb;QACD,MAAM,CAAC,OAAsD;YACzD,MAAM,cAAc,GAAG,mBAAW,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;YAE9D,OAAO;gBACH,WAAW,CAAC,IAA0B;oBAClC,MAAM,MAAM,GAAG,cAAc,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;oBAC1E,MAAM,OAAO,GAAG,cAAc,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;oBACxD,MAAM,IAAI,GAAG,OAAO,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;oBAE/C,MAAM,SAAS,GAAG,IAAI,CAAC,kBAAkB,EAAE,CAAC;oBAC5C,IAAI,SAAS,EAAE,CAAC;wBACZ,OAAO,CAAC,MAAM,CAAC;4BACX,IAAI;4BACJ,SAAS,EAAE,4BAA4B;yBAC1C,CAAC,CAAC;oBACP,CAAC;gBACL,CAAC;aACJ,CAAC;QACN,CAAC;KACJ;CACJ,CAAC"}
1
+ {"version":3,"file":"eslint.customRule.js","sourceRoot":"","sources":["../eslint.customRule.ts"],"names":[],"mappings":";;;AAAA,oDAAiE;AAGpD,QAAA,KAAK,GAAG;IACjB,qCAAqC,EAAE;QACnC,IAAI,EAAE;YACF,IAAI,EAAE,SAAS;YACf,IAAI,EAAE;gBACF,WAAW,EAAE,wCAAwC;gBACrD,WAAW,EAAE,KAAK;aACrB;YACD,QAAQ,EAAE;gBACN,8BAA8B,EAAE,6CAA6C;aAChF;YACD,MAAM,EAAE,EAAE;SACb;QACD,MAAM,CAAC,OAA0D;YAC7D,MAAM,cAAc,GAAG,mBAAW,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;YAE9D,OAAO;gBACH,WAAW,CAAC,IAA0B;oBAClC,MAAM,MAAM,GAAG,cAAc,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;oBAC1E,MAAM,OAAO,GAAG,cAAc,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;oBACxD,MAAM,IAAI,GAAG,OAAO,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;oBAE/C,MAAM,SAAS,GAAG,IAAI,CAAC,kBAAkB,EAAE,CAAC;oBAE5C,IAAI,SAAS,EAAE,CAAC;wBACZ,OAAO,CAAC,MAAM,CAAC;4BACX,IAAI;4BACJ,SAAS,EAAE,gCAAgC;yBAC9C,CAAC,CAAC;oBACP,CAAC;gBACL,CAAC;aACJ,CAAC;QACN,CAAC;KACJ;CACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cimo/websocket",
3
- "version": "1.5.51",
3
+ "version": "1.5.53",
4
4
  "description": "Websocket (server/client). Light, fast and secure.",
5
5
  "author": "cimo",
6
6
  "license": "MIT",