fix: WebSocket cookie auth + connect on layout mount
This commit is contained in:
+1
-1
@@ -113,7 +113,7 @@ func main() {
|
||||
|
||||
// WebSocket endpoint
|
||||
r.Get("/ws", func(w http.ResponseWriter, r *http.Request) {
|
||||
gateway.ServeWS(database.DB, hub, logger, w, r)
|
||||
gateway.ServeWS(database.DB, hub, logger, w, r, cfg.Session.CookieName)
|
||||
})
|
||||
|
||||
// API routes
|
||||
|
||||
Reference in New Issue
Block a user