Improved protocol
This commit is contained in:
@@ -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 }
|
||||
>;
|
||||
Reference in New Issue
Block a user