pusher / pusher-http-php

PHP library for interacting with the Pusher Channels HTTP API
https://pusher.com/docs/server_api_guide
1.41k stars 307 forks source link

Add support for the ConnectException from Guzzle #310

Closed xiCO2k closed 2 years ago

xiCO2k commented 2 years ago

Description

Found out if there is a connection issue, the SDK is not handling that exception, my pull request add the support and returns an ApiErrorException

CHANGELOG

xiCO2k commented 2 years ago

Hey @elverkilde can you check this pull request?

Thanks

amad commented 2 years ago

@xiCO2k thanks for the PR. Would be good if you can include triggerBatch and triggerBatchAsync methods as well.

xiCO2k commented 2 years ago

Thanks @amad, let me know if there is something missing.