rdh-socket-client 1.1.3 → 1.1.4

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rdh-socket-client",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "Client Socket for rdh-socket",
5
5
  "main": "src/index.ts",
6
6
  "type": "module",
package/src/index.ts CHANGED
@@ -20,10 +20,6 @@ export default class RdhClientSocket {
20
20
 
21
21
  this.options = options;
22
22
  this.init();
23
-
24
- this.socket.on('warning_from_server', (message) => {
25
- throw new Error(message);
26
- })
27
23
  }
28
24
 
29
25
  async init() {
@@ -32,6 +28,10 @@ export default class RdhClientSocket {
32
28
  this.socket = io(this.ws_host, {
33
29
  query: this.options
34
30
  });
31
+
32
+ if (!status) {
33
+ console.error("Invalid TOKEN");
34
+ }
35
35
  }
36
36
 
37
37
  async verifyToken() {