@0xmonaco/core 0.2.0 → 0.2.1

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
@@ -2,7 +2,7 @@
2
2
 
3
3
  ⚠️ **EARLY DEVELOPMENT WARNING** ⚠️
4
4
 
5
- This package is currently in **early development** (v0.1.0).
5
+ This package is currently in **early development**.
6
6
 
7
7
  **Breaking changes are expected** and may occur without notice. This version is intended for:
8
8
  - Early adopters and testing
@@ -90,7 +90,7 @@ export class BaseWebSocketClientImpl {
90
90
  this.ws?.close();
91
91
  return;
92
92
  }
93
- this.ws?.send(JSON.stringify({ type: 'PING' }));
93
+ this.ws?.send(JSON.stringify({ type: 'Ping' }));
94
94
  }, BaseWebSocketClientImpl.HEARTBEAT_INTERVAL);
95
95
  }
96
96
  /** Stop heartbeat interval */
@@ -109,7 +109,7 @@ export class BaseWebSocketClientImpl {
109
109
  }
110
110
  /** Handle incoming WebSocket messages - can be overridden by subclasses */
111
111
  handleMessage(message) {
112
- if (message.type === 'PONG') {
112
+ if (message.type === 'Pong') {
113
113
  this.lastPong = Date.now();
114
114
  return;
115
115
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xmonaco/core",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "dependencies": {
15
15
  "@0xmonaco/contracts": "0.1.7",
16
- "@0xmonaco/types": "0.2.0"
16
+ "@0xmonaco/types": "0.2.1"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@types/node": "^20.11.30",