Live: proxy subscribe data for subscribe and runstream plugin calls (#42824)
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
This commit is contained in:
co-authored by
Ryan McKinley
parent
d2c5dac76f
commit
f4cc353225
@@ -21,11 +21,11 @@ func (s *MultipleSubscriber) Type() string {
|
||||
return SubscriberTypeMultiple
|
||||
}
|
||||
|
||||
func (s *MultipleSubscriber) Subscribe(ctx context.Context, vars Vars) (models.SubscribeReply, backend.SubscribeStreamStatus, error) {
|
||||
func (s *MultipleSubscriber) Subscribe(ctx context.Context, vars Vars, data []byte) (models.SubscribeReply, backend.SubscribeStreamStatus, error) {
|
||||
finalReply := models.SubscribeReply{}
|
||||
|
||||
for _, s := range s.Subscribers {
|
||||
reply, status, err := s.Subscribe(ctx, vars)
|
||||
reply, status, err := s.Subscribe(ctx, vars, data)
|
||||
if err != nil {
|
||||
return models.SubscribeReply{}, 0, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user