fix ability to recursively call the respond method. Fixes #173

This commit is contained in:
Marcel Pociot 2019-05-11 08:39:03 +02:00
parent 1c2b89b54d
commit d2146f7977
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class PusherChannelProtocolMessage implements PusherMessage
{ {
$eventName = Str::camel(Str::after($this->payload->event, ':')); $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()); call_user_func([$this, $eventName], $this->connection, $this->payload->data ?? new stdClass());
} }
} }