mirror of
https://github.com/wisplite/tether.git
synced 2026-05-01 06:22:41 -05:00
send incoming websocket data to engine
This commit is contained in:
@@ -36,5 +36,10 @@ func (e *Engine) CreateTable(name string, schema interface{}) {
|
||||
}
|
||||
|
||||
func (e *Engine) Handle(w http.ResponseWriter, r *http.Request) {
|
||||
reactivity.Handle(w, r)
|
||||
reactivity.Handle(w, r, e)
|
||||
}
|
||||
|
||||
func (e *Engine) OnReceiveMessage(msg map[string]interface{}) error {
|
||||
slog.Debug("Received message", "message", msg)
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user