This commit is contained in:
Marcel Pociot 2018-11-21 12:14:45 +01:00
parent e94e70b734
commit 8b1e183043
1 changed files with 9 additions and 0 deletions

View File

@ -8,6 +8,12 @@ class PresenceChannel extends Channel
{
protected $subscriptions = [];
/**
* @link https://pusher.com/docs/pusher_protocol#presence-channel-events
*
* @param ConnectionInterface $conn
* @param $payload
*/
public function subscribe(ConnectionInterface $conn, $payload)
{
$channelData = json_decode($payload->channel_data);
@ -21,6 +27,9 @@ class PresenceChannel extends Channel
]));
}
/**
* @return array
*/
protected function getChannelData()
{
return [