implemented event and req

This commit is contained in:
2025-09-02 20:32:53 +01:00
parent 76b251dea9
commit 51f04f5f60
104 changed files with 6368 additions and 125 deletions

View File

@@ -1,9 +1,23 @@
package app
import (
"context"
"github.com/coder/websocket"
"lol.mleku.dev/chk"
)
type Listener struct {
conn *websocket.Conn
*Server
conn *websocket.Conn
ctx context.Context
remote string
}
func (l *Listener) Write(p []byte) (n int, err error) {
if err = l.conn.Write(l.ctx, websocket.MessageText, p); chk.E(err) {
return
}
n = len(p)
return
}