You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The OnConnect callback (added in #137) is only sent during the readLoop so it will only be triggered after the server sends an event, which could be some time (or even never) after a connection is established:
The OnConnect callback (added in #137) is only sent during the
readLoop
so it will only be triggered after the server sends an event, which could be some time (or even never) after a connection is established:sse/client.go
Line 231 in c6d5381
It seems the callback could and should be called here instead, directly after the HTTP response:
sse/client.go
Lines 98 to 100 in c6d5381
sse/client.go
Lines 152 to 156 in c6d5381
or, at the top of
readLoop
The text was updated successfully, but these errors were encountered: