Message sending

This commit is contained in:
2026-08-20 10:53:52 +02:00
parent fc1c550a2e
commit 8bdae4ceb8
3 changed files with 54 additions and 1 deletions
+16
View File
@@ -6,6 +6,17 @@ export interface ServerMeta {
channels: Channel[];
}
export interface MessageData {
content: string;
timestamp: number;
signature: string;
}
export interface StoredMessage extends MessageData {
id: string;
author: string;
}
export type ClientMethod =
| {
method: "Initialized";
@@ -30,6 +41,11 @@ export type ServerMethod =
| {
method: "Meta";
}
| {
method: "SendMessage";
channel_id: string;
data: MessageData;
}
| {
method: "Error";
error: string;