We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce5a002 commit ef8a91eCopy full SHA for ef8a91e
chat-example/chat.go
@@ -27,6 +27,7 @@ func (cs *chatServer) subscribeHandler(w http.ResponseWriter, r *http.Request) {
27
log.Print(err)
28
return
29
}
30
+ defer c.Close(websocket.StatusInternalError, "")
31
32
err = cs.subscribe(r.Context(), c)
33
if errors.Is(err, context.Canceled) {
0 commit comments