This commit is contained in:
Marcel Pociot 2018-11-22 09:30:11 +01:00
parent 5593b96dd2
commit b8c3ae6fe4
2 changed files with 4 additions and 1 deletions

View File

@ -26,7 +26,7 @@ class Channel
/*
* @link https://pusher.com/docs/pusher_protocol#presence-channel-events
*/
public function subscribe(ConnectionInterface $connection)
public function subscribe(ConnectionInterface $connection, $payload)
{
$this->saveConnection($connection);

View File

@ -16,6 +16,9 @@ class RespondableMessageFactory
{
$payload = json_decode($message->getPayload());
// Log this for now
dump($payload);
return starts_with($payload->event, 'pusher:')
? new PusherMessage($payload, $connection, $channelManager)
: new Message($payload, $connection, $channelManager);