Remove unused eventpool package, improve logging levels, standardize websocket handling, and add HandleClose functionality.

This commit is contained in:
2025-09-02 23:01:13 +01:00
parent 51f04f5f60
commit 5d04afd748
8 changed files with 73 additions and 83 deletions

View File

@@ -9,6 +9,7 @@ import (
"lol.mleku.dev/chk"
"lol.mleku.dev/log"
"next.orly.dev/app/config"
"protocol.orly/publish"
)
func Run(
@@ -24,9 +25,10 @@ func Run(
}()
// start listener
l := &Server{
Ctx: ctx,
Config: cfg,
D: db,
Ctx: ctx,
Config: cfg,
D: db,
publishers: publish.New(NewPublisher()),
}
addr := fmt.Sprintf("%s:%d", cfg.Listen, cfg.Port)
log.I.F("starting listener on http://%s", addr)