mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-09 15:11:10 +00:00
engine/websocket: subscribe to default channels only when actually needed (#610)
* if this is required by ws routines or sync manager * restore previous subscriptions on reconnect
This commit is contained in:
@@ -49,11 +49,7 @@ func (b *BTSE) WsConnect() error {
|
||||
}
|
||||
}
|
||||
|
||||
subs, err := b.GenerateDefaultSubscriptions()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return b.Websocket.SubscribeToChannels(subs)
|
||||
return nil
|
||||
}
|
||||
|
||||
// WsAuthenticate Send an authentication message to receive auth data
|
||||
|
||||
Reference in New Issue
Block a user