@@ -364,8 +364,11 @@ func (r *Relay) Subscribe(ctx context.Context, filter Filter, opts SubscriptionO
}
go func() {
<-r.connection.closedNotify
select {
case <-r.connection.closedNotify:
sub.unsub(ErrDisconnected)
case <-ctx.Done():
}()
return sub, nil
The note is not visible to the blocked user.