diff options
author | wlodekm <[email protected]> | 2025-01-24 17:51:45 +0200 |
---|---|---|
committer | WlodekM <[email protected]> | 2025-01-24 18:05:00 +0200 |
commit | 2c8abffae1f73087847bebb70ea354fcaaa2b69a (patch) | |
tree | 0fdbf3379b0d7eba3565250f364fede49f307921 /client.ts | |
parent | 98980ea477be08e76d139584e8c79c1424328469 (diff) |
remove debugging
Diffstat (limited to 'client.ts')
-rw-r--r-- | client.ts | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/client.ts b/client.ts index 93b3dc5..02397d0 100644 --- a/client.ts +++ b/client.ts @@ -7,10 +7,9 @@ import strftime from "./strftime.js"; export const maelink = new Maelink() export let token: string; export const connection = maelink.ws -console.debug('ass') maelink.ws.onopen = () => { - console.debug('open') + screen?.logs?.push('open') } export const home: any[] = []; @@ -19,7 +18,6 @@ let screen: Screen; export function setScreen(screenN: Screen) { screen = screenN - // console.log(screen) } interface Post { @@ -32,18 +30,14 @@ interface Post { } maelink.on('message', (e) => { - console.debug(e) screen.logs.push("INC: " + e) }) maelink.on("post", (post: Post) => { - console.debug('assss') - screen.logs.push("POST: " + JSON.stringify(post)) + screen.logs.push("MESSAGE: " + JSON.stringify(post)) home.push(post); - console.debug(post, 'uh', home) const textHome: string[] = home.map(p => `[${strftime("%H:%M:%S", new Date(Number(JSON.parse(p.e).t) * 1000))}] ${p.u}: ${p.p}`); const homeElem: Text = screen.elements.get("home") as Text; - console.debug(homeElem, screen) if(homeElem) homeElem.text = textHome.join("\n")+"\n"; screen.render() }) |