@tina_summer/codepocket 2.2.8 → 2.2.9

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/bin/codepocket.js CHANGED
@@ -382,8 +382,10 @@ function connectRelay() {
382
382
  sessionToken: savedSession?.sessionToken || undefined,
383
383
  }))
384
384
  relayPingInterval = setInterval(() => {
385
- if (relayWs?.readyState === WebSocket.OPEN) relayWs.ping()
386
- }, 30000)
385
+ if (relayWs?.readyState === WebSocket.OPEN) {
386
+ relayWs.send(JSON.stringify({ type: 'ping' }))
387
+ }
388
+ }, 25000)
387
389
  })
388
390
 
389
391
  relayWs.on('message', (raw) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tina_summer/codepocket",
3
- "version": "2.2.8",
3
+ "version": "2.2.9",
4
4
  "description": "CodePocket — 基于ClaudeCode的微信小程序工作台",
5
5
  "bin": {
6
6
  "codepocket": "bin/codepocket.js",