import type { MessageHandler, MessageHandlerInboundMessage } from '../../../agent/MessageHandler' import type { ConnectionService } from '../services' import { ConnectionProblemReportMessage } from '../messages' export class ConnectionProblemReportHandler implements MessageHandler { private connectionService: ConnectionService public supportedMessages = [ConnectionProblemReportMessage] public constructor(connectionService: ConnectionService) { this.connectionService = connectionService } public async handle(messageContext: MessageHandlerInboundMessage) { await this.connectionService.processProblemReport(messageContext) } }