feat(apis/websocket): clear old client sessions and instances

This commit is contained in:
PalmDevs
2024-07-14 00:24:32 +07:00
parent 2f03800c61
commit 43bd0a021c
5 changed files with 97 additions and 79 deletions

View File

@@ -2,6 +2,7 @@ import type { ClientOperation } from '@revanced/bot-shared'
import type { Logger } from '@revanced/bot-shared'
import type { Worker as TesseractWorker } from 'tesseract.js'
import type { ClientPacketObject } from '../classes/Client'
import type { WitMessageResponse } from '../context'
import type { Config } from '../utils/config'
export { default as parseTextEventHandler } from './parseText'
@@ -22,12 +23,3 @@ export type EventContext = {
logger: Logger
config: Config
}
export interface WitMessageResponse {
text: string
intents: Array<{
id: string
name: string
confidence: number
}>
}