diff --git a/src/WebSockets/Messages/PusherChannelProtocolMessage.php b/src/WebSockets/Messages/PusherChannelProtocolMessage.php index a2b7b25..8c36595 100644 --- a/src/WebSockets/Messages/PusherChannelProtocolMessage.php +++ b/src/WebSockets/Messages/PusherChannelProtocolMessage.php @@ -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()); } }