Refactor: Rename Connection to Conn, add proxy example, and enhance login client functionality

This commit is contained in:
adman
2025-11-12 01:19:45 +01:00
parent f91424236b
commit 275f28a7c8
7 changed files with 203 additions and 39 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ func FireEvent(inst HandlerInst, event any, handlers map[reflect.Type]reflect.Va
return
}
func (c *Connection) Start(inst HandlerInst) (err error) {
func (c *Conn) Start(inst HandlerInst) (err error) {
handlers := FindHandlers(inst)
err = FireEvent(inst, OnStart{}, handlers)
for err == nil {