This commit is contained in:
maddalax 2024-10-04 11:22:48 -05:00
parent 805e5729e1
commit 60651361e2

View file

@ -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"),