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 e39bfb8 commit 72be089Copy full SHA for 72be089
src/AsyncClient.php
@@ -14,6 +14,7 @@
14
15
final class AsyncClient
16
{
17
+ const DEFAULT_DELAY = 200;
18
const NO_ACTIVITY_TIMEOUT = 120;
19
const NO_PING_RESPONSE_TIMEOUT = 30;
20
@@ -42,7 +43,7 @@ final class AsyncClient
42
43
/**
44
* @var int
45
*/
- protected $delay = 200;
46
+ protected $delay = self::DEFAULT_DELAY;
47
48
49
* @internal
@@ -99,6 +100,8 @@ public function __construct(Observable $client)
99
100
101
// Deal with connection established messages
102
->map(function (array $message) {
103
+ $this->delay = self::DEFAULT_DELAY;
104
+
105
$event = Event::createFromMessage($message);
106
107
if ($event->getEvent() === 'pusher:connection_established') {
0 commit comments