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
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fixed
triggerBroadcast now treats data and recipients as optional, matching the documented API. Calling with only a broadcast id no longer throws a TypeError, and empty data / recipients objects are omitted from the request payload instead of producing a 422 (empty recipients filter is not valid) from the API — so api.triggerBroadcast(id) sends the broadcast to its configured recipients. The parameters are positional: to pass recipients without data, use triggerBroadcast(id, undefined, recipients). (#220)