mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-16 04:45:46 +00:00
chore: NETWORK
This commit is contained in:
parent
2a5d2cc146
commit
6f095470ad
@ -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,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,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';
|
||||
|
Loading…
Reference in New Issue
Block a user