chore: 正向WS实现

This commit is contained in:
手瓜一十雪
2024-08-11 09:50:09 +08:00
parent 6af155de53
commit fc2fe0a873
2 changed files with 42 additions and 11 deletions

View File

@@ -69,7 +69,7 @@ export class NapCatOneBot11Adapter {
}
if (ob11Config.ws.enable) {
OB11NetworkManagerWrap.registerAdapter(new OB11PassiveWebSocketAdapter(
ob11Config.ws.host, ob11Config.ws.port, ob11Config.heartInterval, ob11Config.token
ob11Config.ws.host, ob11Config.ws.port, ob11Config.heartInterval, ob11Config.token, this.core, this
));
}
if (ob11Config.reverseWs.enable) {