chore: NETWORK

This commit is contained in:
手瓜一十雪 2024-08-11 11:12:23 +08:00
parent 2a5d2cc146
commit 6f095470ad
3 changed files with 2 additions and 5 deletions

View File

@ -1,6 +1,5 @@
import { IOB11NetworkAdapter, OB11EmitEventContent } from '@/onebot/network/index'; import { IOB11NetworkAdapter, OB11EmitEventContent } from '@/onebot/network/index';
import BaseAction from '@/onebot/action/BaseAction'; import BaseAction from '@/onebot/action/BaseAction';
import { OB11BaseEvent } from '@/onebot/event/OB11BaseEvent';
import { createHmac } from 'crypto'; import { createHmac } from 'crypto';
import { LogWrapper } from '@/common/utils/log'; import { LogWrapper } from '@/common/utils/log';
import { QuickAction, QuickActionEvent } from '../types'; import { QuickAction, QuickActionEvent } from '../types';
@ -69,11 +68,11 @@ export class OB11ActiveHttpAdapter implements IOB11NetworkAdapter {
async open() { async open() {
// HTTP adapter does not need to establish a persistent connection // 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() { close() {
// HTTP adapter does not need to close a persistent connection // 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.');
} }
} }

View File

@ -1,5 +1,4 @@
import { IOB11NetworkAdapter, OB11EmitEventContent } from './index'; import { IOB11NetworkAdapter, OB11EmitEventContent } from './index';
import { OB11BaseEvent } from '@/onebot/event/OB11BaseEvent';
import BaseAction from '@/onebot/action/BaseAction'; import BaseAction from '@/onebot/action/BaseAction';
import express, { Express, Request, Response } from 'express'; import express, { Express, Request, Response } from 'express';
import http from 'http'; import http from 'http';

View File

@ -1,5 +1,4 @@
import { IOB11NetworkAdapter, OB11EmitEventContent } from './index'; import { IOB11NetworkAdapter, OB11EmitEventContent } from './index';
import { OB11BaseEvent } from '@/onebot/event/OB11BaseEvent';
import urlParse from 'url'; import urlParse from 'url';
import BaseAction from '@/onebot/action/BaseAction'; import BaseAction from '@/onebot/action/BaseAction';
import { WebSocket, WebSocketServer } from 'ws'; import { WebSocket, WebSocketServer } from 'ws';