/** * @license * Copyright 2022-2024 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ export enum ChannelType { UDP = "udp", BLE = "ble", TCP = "tcp", } export interface Channel { /** Maximum Payload size for this channel */ maxPayloadSize: number; /** Is the transport Reliable? UDP is not, TCP and BTP are. */ isReliable: boolean; /** Channel name */ name: string; type: ChannelType; /** Method to send data to the remote endpoint */ send(data: T): Promise; /** Method to close the channel */ close(): Promise; }