have a roster and a whoami
This commit is contained in:
Vendored
+7
-1
@@ -9,7 +9,13 @@
|
||||
*
|
||||
* @module
|
||||
*/
|
||||
type state = {
|
||||
whoami: string;
|
||||
roster: Array<string>;
|
||||
};
|
||||
declare let st: state;
|
||||
declare function main(): Promise<void>;
|
||||
type ws_msg = ["join", string] | ["down", string];
|
||||
type ws_msg = ["whoami", string] | ["roster", Array<string>];
|
||||
declare function handle_ws_msg(message: ws_msg): void;
|
||||
declare function ws_send_json(ws: WebSocket, x: any): void;
|
||||
declare function render_state(): void;
|
||||
|
||||
Reference in New Issue
Block a user