wip
This commit is contained in:
parent
5593b96dd2
commit
b8c3ae6fe4
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue