roster kind of sort of works

This commit is contained in:
Peter Harpending
2026-02-09 21:11:53 -08:00
parent 6028bb5850
commit b871968f8c
5 changed files with 70 additions and 11 deletions
+2
View File
@@ -10,5 +10,7 @@
* @module
*/
declare function main(): Promise<void>;
type ws_msg = ["username", string] | ["users", Array<string>];
declare function handle_ws_msg(message: ws_msg, roster_ul: HTMLUListElement, whoami: HTMLHeadingElement): void;
declare function handle_join(init: HTMLDivElement, init_name: HTMLInputElement, peers: HTMLDivElement, ws: WebSocket): Promise<void>;
declare function ws_send_json(ws: WebSocket, x: any): void;