Refactor: Add StartServer and ServeClient functions, improve palette unpacking with new helpers, and simplify the proxy example

This commit is contained in:
adman
2025-12-15 21:44:09 +01:00
parent 3bd20a3764
commit 01bf2a575c
4 changed files with 147 additions and 125 deletions
+16
View File
@@ -0,0 +1,16 @@
package modules
import (
"fmt"
"github.com/admin-else/strom"
)
type LoginServer struct {
*strom.Conn
}
func (l LoginServer) Default(event any) (err error) {
err = fmt.Errorf("unexpected event: %#v", event)
return
}