[feature] join servers while running

This commit is contained in:
Janis
2023-06-25 20:43:43 +02:00
parent 40dbf72fcf
commit f0ad55a685
2 changed files with 164 additions and 37 deletions

View File

@@ -36,11 +36,11 @@ export interface IChannel {
}
export interface IConnection {
channelInfos: IChannelInfos;
channelInfos?: IChannelInfos;
clientId: number;
clientInfos: IClientInfo[];
clientInfos?: IClientInfo[];
id: number;
properties: IConnectionProperties;
properties?: IServerProperties;
}
@@ -144,7 +144,7 @@ export interface IClientProperties {
volumeModificator: number;
}
export interface IConnectionProperties {
export interface IServerProperties {
antiFloodPointsNeededCommandBlock: number;
antiFloodPointsNeededIpBlock: number;
antiFloodPointsNeededPluginBlock: number;
@@ -269,3 +269,31 @@ export interface IAuthMessage {
connections: IConnection[];
};
}
export interface IServerPropertiesUpdatedMessage {
type: "serverPropertiesUpdated";
payload: {
connectionId: number;
properties: IServerProperties;
};
}
export interface IConnectStatusChangedMessage {
type: "connectStatusChanged";
payload: {
connectionId: number;
error: number;
info: {
clientId: number;
}
status: number;
};
}
export interface IChannelsMessage {
type: "channels";
payload: {
connectionId: number;
info: IChannelInfos
}
}