openclaw-glance-plugin 0.1.1 → 0.1.2
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 +3 -3
- package/package.json +1 -1
- package/src/OpenClawBridgeClient.js +1 -1
package/README.md
CHANGED
|
@@ -61,7 +61,7 @@ npm run start:adapter
|
|
|
61
61
|
import { OpenClawBridgeClient } from './src/index.js';
|
|
62
62
|
|
|
63
63
|
const client = new OpenClawBridgeClient({
|
|
64
|
-
baseWsUrl: '
|
|
64
|
+
baseWsUrl: 'wss://glanceup-pre.100credit.cn',
|
|
65
65
|
token: '<JWT_TOKEN>',
|
|
66
66
|
enqueueIfDisconnected: true
|
|
67
67
|
});
|
|
@@ -90,7 +90,7 @@ const res = await client.createWatch({
|
|
|
90
90
|
import { OpenClawPluginAdapter } from './src/index.js';
|
|
91
91
|
|
|
92
92
|
const adapter = new OpenClawPluginAdapter({
|
|
93
|
-
baseWsUrl: '
|
|
93
|
+
baseWsUrl: 'wss://glanceup-pre.100credit.cn',
|
|
94
94
|
token: '<JWT_TOKEN>'
|
|
95
95
|
});
|
|
96
96
|
|
|
@@ -125,5 +125,5 @@ await adapter.submitWatchDemand({
|
|
|
125
125
|
|
|
126
126
|
## 说明
|
|
127
127
|
|
|
128
|
-
- 先获取 ws `token`,然后连接 `
|
|
128
|
+
- 先获取 ws `token`,然后连接 `wss://<host>:8005/openclaw/ws`,并在握手 Header 传 `Authorization: Bearer <TOKEN>`。
|
|
129
129
|
- 发布时将导出 `src/` 与 `README.md`(见 `package.json` 的 `files/exports`)。
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import EventEmitter from 'node:events';
|
|
2
2
|
import WebSocket from 'ws';
|
|
3
3
|
|
|
4
|
-
const DEFAULT_BASE_WS_URL = '
|
|
4
|
+
const DEFAULT_BASE_WS_URL = 'wss://glanceup-pre.100credit.cn';
|
|
5
5
|
|
|
6
6
|
function sleep(ms) {
|
|
7
7
|
return new Promise((resolve) => setTimeout(resolve, ms));
|