Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit d2146f7

Browse files
committed
fix ability to recursively call the respond method. Fixes #173
1 parent 1c2b89b commit d2146f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WebSockets/Messages/PusherChannelProtocolMessage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function respond()
3131
{
3232
$eventName = Str::camel(Str::after($this->payload->event, ':'));
3333

34-
if (method_exists($this, $eventName)) {
34+
if (method_exists($this, $eventName) && $eventName !== 'respond') {
3535
call_user_func([$this, $eventName], $this->connection, $this->payload->data ?? new stdClass());
3636
}
3737
}

0 commit comments

Comments
 (0)