Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 4bd4355

Browse files
authored
Apply suggestions from code review
1 parent 63addf1 commit 4bd4355

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/guides/go/realtime-messaging.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ ws.On(websockets.EventType_Connect, func(ctx *websockets.Ctx) {
116116
})
117117
if err != nil {
118118
fmt.Println("Error storing connection ID in KV store:", err)
119-
return
119+
ctx.Response.Reject = true
120120
}
121121
})
122122
```
@@ -196,7 +196,7 @@ func main() {
196196
})
197197
if err != nil {
198198
fmt.Println("Error storing connection ID in KV store:", err)
199-
return
199+
ctx.Response.Reject = true
200200
}
201201
})
202202

0 commit comments

Comments
 (0)