@aka_openclaw_plugin/mychat 0.1.10 → 0.1.11
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/api.js +1 -1
- package/{channel-BTGCJxf9.js → channel-Notyh4R-.js} +12 -6
- package/channel-plugin-api.js +1 -1
- package/package.json +1 -1
- package/setup-entry.js +1 -1
package/api.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as tryGetMychatRuntime, i as setMychatRuntime, n as init_runtime, t as getMychatRuntime } from "./runtime-PfFuZ2Rm.js";
|
|
2
|
-
import { t as mychatPlugin } from "./channel-
|
|
2
|
+
import { t as mychatPlugin } from "./channel-Notyh4R-.js";
|
|
3
3
|
//#region api.ts
|
|
4
4
|
init_runtime();
|
|
5
5
|
//#endregion
|
|
@@ -3786,11 +3786,15 @@ function createMychatWsClient(params) {
|
|
|
3786
3786
|
ws.on("open", () => {
|
|
3787
3787
|
connected = true;
|
|
3788
3788
|
currentDelay = initialDelay;
|
|
3789
|
-
console.log(`[mychat] WS connected botSelfId=${botSelfId ?? "none"}`);
|
|
3790
|
-
if (botSelfId)
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3789
|
+
console.log(`[mychat] WS open event fired, connected=true botSelfId=${botSelfId ?? "none"}`);
|
|
3790
|
+
if (botSelfId) {
|
|
3791
|
+
const subMsg = JSON.stringify({
|
|
3792
|
+
type: "subscribe",
|
|
3793
|
+
body: { subscribe: { conversationId: botSelfId } }
|
|
3794
|
+
});
|
|
3795
|
+
console.log(`[mychat] WS subscribing to conversationId=${botSelfId}`);
|
|
3796
|
+
ws?.send(subMsg);
|
|
3797
|
+
}
|
|
3794
3798
|
});
|
|
3795
3799
|
ws.on("message", (data) => {
|
|
3796
3800
|
try {
|
|
@@ -3833,7 +3837,9 @@ function createMychatWsClient(params) {
|
|
|
3833
3837
|
};
|
|
3834
3838
|
},
|
|
3835
3839
|
isConnected() {
|
|
3836
|
-
|
|
3840
|
+
const state = connected;
|
|
3841
|
+
console.log(`[mychat] WS isConnected() called, returning ${state}`);
|
|
3842
|
+
return state;
|
|
3837
3843
|
}
|
|
3838
3844
|
};
|
|
3839
3845
|
}
|
package/channel-plugin-api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as mychatPlugin } from "./channel-
|
|
1
|
+
import { t as mychatPlugin } from "./channel-Notyh4R-.js";
|
|
2
2
|
export { mychatPlugin };
|
package/package.json
CHANGED
package/setup-entry.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as mychatPlugin } from "./channel-
|
|
1
|
+
import { t as mychatPlugin } from "./channel-Notyh4R-.js";
|
|
2
2
|
export { mychatPlugin };
|