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 d8f958f commit 58905d8Copy full SHA for 58905d8
stream.go
@@ -131,6 +131,9 @@ func (s *Stream) ServeHTTP(w http.ResponseWriter, r *http.Request) {
131
132
// wait for the client to exit or be shutdown
133
s.Register(c)
134
+ if s.clientConnectHook != nil {
135
+ s.clientConnectHook(r, c)
136
+ }
137
c.Wait()
138
s.Remove(c)
139
}
@@ -161,6 +164,10 @@ func (s *Stream) TopicHandler(topics []string) http.HandlerFunc {
161
164
s.Subscribe(topic, c)
162
165
163
166
167
168
169
170
+
171
172
173
0 commit comments