diff --git a/fcm.go b/fcm.go index d052474..9cb8588 100644 --- a/fcm.go +++ b/fcm.go @@ -12,6 +12,7 @@ package fcm import ( "bufio" "bytes" + "context" "encoding/json" "fmt" "io" @@ -316,7 +317,7 @@ func makeSendResponseFromPart(part *multipart.Part) (SendResponse, error) { return resp, nil } -func (c *Client) SendEach(messages []Message) (MessageMultiSendResponse, error) { +func (c *Client) SendEach(ctx context.Context, messages []Message) (MessageMultiSendResponse, error) { return c.doSendEachInBatch(messages, false) }