fix ability to recursively call the respond method. Fixes #173
This commit is contained in:
parent
1c2b89b54d
commit
d2146f7977
|
|
@ -31,7 +31,7 @@ class PusherChannelProtocolMessage implements PusherMessage
|
|||
{
|
||||
$eventName = Str::camel(Str::after($this->payload->event, ':'));
|
||||
|
||||
if (method_exists($this, $eventName)) {
|
||||
if (method_exists($this, $eventName) && $eventName !== 'respond') {
|
||||
call_user_func([$this, $eventName], $this->connection, $this->payload->data ?? new stdClass());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue