Chatroom 2 (#10)

* Remove unused method. Don't panic if unknown room.

* Need a Connected() check for rooms publishing - don't do the work of rendering for a dead connection

* Make vars private.

* Linter issues

* Remove Connected()

* Mutation observer. Publish 4x / second.

---------

Co-authored-by: João Gonçalves <joao.goncalves01@gmail.com>
This commit is contained in:
Jeff Winkler
2025-11-13 10:39:37 -05:00
committed by GitHub
parent 7670926733
commit 351bed3ea1
7 changed files with 34 additions and 46 deletions

2
h/h.go
View File

@@ -31,7 +31,7 @@ func Textf(format string, a ...any) H {
return g.Textf(format, a...)
}
// / Raw creates a text DOM [Node] that just Renders the unescaped string t.
// Raw creates a text DOM [Node] that just Renders the unescaped string t.
func Raw(s string) H {
return g.Raw(s)
}