Refactor: Add StartServer and ServeClient functions, improve palette unpacking with new helpers, and simplify the proxy example
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user