Improved protocol

This commit is contained in:
2025-12-22 12:45:48 +01:00
parent 75dfdac920
commit be4917ce80
8 changed files with 491 additions and 153 deletions
+9
View File
@@ -0,0 +1,9 @@
export interface MessageType<T = string, P = object> {
type: T;
params: P;
}
export type ClientMessage = MessageType<
"send_message",
{ channel_id: string; contents: string }
>;