We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb731d4 commit 2b3eca8Copy full SHA for 2b3eca8
src/ConnectionRepository.php
@@ -4,6 +4,7 @@
4
5
use Aws\ApiGatewayManagementApi\ApiGatewayManagementApiClient;
6
use Aws\ApiGatewayManagementApi\Exception\ApiGatewayManagementApiException;
7
+use Symfony\Component\HttpFoundation\Response;
8
9
class ConnectionRepository
10
{
@@ -30,8 +31,11 @@ public function sendMessage(string $connectionId, string $data): void
30
31
'Data' => $data,
32
]);
33
} catch (ApiGatewayManagementApiException $e) {
- // GoneException: The connection with the provided id no longer exists.
34
- if ($e->getAwsErrorCode() === 'GoneException') {
+ // GoneException: The connection with the provided id no longer exists
35
+ if (
36
+ $e->getStatusCode() === Response::HTTP_GONE ||
37
+ $e->getAwsErrorCode() === 'GoneException'
38
+ ) {
39
$this->subscriptionRepository->clearConnection($connectionId);
40
41
return;
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments