chore: NETWORK

This commit is contained in:
手瓜一十雪 committed 2024-08-11 11:12:23 +08:00
1 parent 2e0593f593
commit ecd13d42d0
3 files changed
+2 -5

No files matched your search

+2 -3
View File
@@ -1,6 +1,5 @@
import { IOB11NetworkAdapter, OB11EmitEventContent } from '@/onebot/network/index';
import BaseAction from '@/onebot/action/BaseAction';
import { OB11BaseEvent } from '@/onebot/event/OB11BaseEvent';
import { createHmac } from 'crypto';
import { LogWrapper } from '@/common/utils/log';
import { QuickAction, QuickActionEvent } from '../types';
@@ -69,11 +68,11 @@ export class OB11ActiveHttpAdapter implements IOB11NetworkAdapter {
async open() {
// HTTP adapter does not need to establish a persistent connection
console.log('HTTP adapter is ready to send events.');
//console.log('HTTP adapter is ready to send events.');
}
close() {
// HTTP adapter does not need to close a persistent connection
console.log('HTTP adapter does not maintain a persistent connection.');
// console.log('HTTP adapter does not maintain a persistent connection.');
}
}
-1
View File
@@ -1,5 +1,4 @@
import { IOB11NetworkAdapter, OB11EmitEventContent } from './index';
import { OB11BaseEvent } from '@/onebot/event/OB11BaseEvent';
import BaseAction from '@/onebot/action/BaseAction';
import express, { Express, Request, Response } from 'express';
import http from 'http';
-1
View File
@@ -1,5 +1,4 @@
import { IOB11NetworkAdapter, OB11EmitEventContent } from './index';
import { OB11BaseEvent } from '@/onebot/event/OB11BaseEvent';
import urlParse from 'url';
import BaseAction from '@/onebot/action/BaseAction';
import { WebSocket, WebSocketServer } from 'ws';