value问题处理
Some checks failed
test / Run tests (push) Failing after 3s
build / Build (push) Failing after 6s

This commit is contained in:
2025-04-09 18:05:59 +08:00
parent 9f70b7eb7a
commit 0d86dae710
18 changed files with 122 additions and 68 deletions

View File

@ -1,4 +1,5 @@
import LoggerCore from "@App/app/logger/core";
import { connect } from "./client";
export interface Message extends MessageSend {
onConnect(callback: (data: any, con: MessageConnect) => void): void;
@ -124,7 +125,7 @@ export function forwardMessage(prefix: string, path: string, from: Server, to: M
}
const fromConnect = fromCon.getConnect();
if (fromConnect) {
to.connect({ action: prefix + "/" + path, data: params }).then((toCon) => {
connect(to, prefix + "/" + path, params).then((toCon) => {
fromConnect.onMessage((data) => {
toCon.sendMessage(data);
});