diff --git a/examples/chat/pages/chat.$id.go b/examples/chat/pages/chat.$id.go index 3bece62..92b1066 100644 --- a/examples/chat/pages/chat.$id.go +++ b/examples/chat/pages/chat.$id.go @@ -18,7 +18,7 @@ func ChatRoom(ctx *h.RequestContext) *h.Page { h.Div( h.TriggerChildren(), - h.Attribute("sse-connect", fmt.Sprintf("/ws/chat/%s", roomId)), + h.Attribute("sse-connect", fmt.Sprintf("/sse/chat/%s", roomId)), h.HxOnSseOpen( js.ConsoleLog("Connected to chat room"),