fixed subchannel not being recognized

This commit is contained in:
2025-01-24 01:54:55 +01:00
parent 23a8a6464d
commit 798dfd8ec5
4 changed files with 60 additions and 16 deletions

View File

@@ -35,6 +35,10 @@ export interface ITS5DataHandler {
getConnectionById(id: number): IConnection | undefined;
getChannelById(id: number, connectionId: number): IChannel | undefined;
getClientById(id: number, connectionId: number): IClient | undefined;
readonly connections: IConnection[];
readonly channels: IChannel[];
readonly clients: IClient[];
}
export interface ITS5MessageHandler {
@@ -53,6 +57,7 @@ export interface ITS5MessageHandler {
handleServerPropertiesUpdatedMessage(data: IServerPropertiesUpdatedMessage): void;
handleConnectStatusChangedMessage(data: IConnectStatusChangedMessage): void;
handleChannelsMessage(data: IChannelsMessage): void;
handleChannelCreatedMessage(data: IChannelCreatedMessage): void;
}
// Remote App
@@ -345,4 +350,14 @@ export interface IChannelsMessage {
connectionId: number;
info: IChannelInfos
}
}
export interface IChannelCreatedMessage {
type: "channelCreated";
payload: {
channelId: number;
connectionId: number;
parentId: string;
properties: IChannelProperties;
}
}