plokko / firebase-php

Php integration of Firebase API (FCM Http v1, RealTime database)
16 stars 9 forks source link

Re-Use HTTP-Client for mutliple FCM-Requests #18

Open tbsmark86 opened 6 months ago

tbsmark86 commented 6 months ago

Hi!

Sending multiple Messages was very slow for me (45 mins for ~6000 targets) with this patch I've got it down to 5 minutes. This getClient() is basically the same like in Database.php - so making it similar.

In addition I've changed the comments because they seem misleading.