From 8b1e1830433d275818a6ee878ff5d6f4ef83c07d Mon Sep 17 00:00:00 2001 From: Marcel Pociot Date: Wed, 21 Nov 2018 12:14:45 +0100 Subject: [PATCH] wip --- src/LaravelEcho/Pusher/Channels/PresenceChannel.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/LaravelEcho/Pusher/Channels/PresenceChannel.php b/src/LaravelEcho/Pusher/Channels/PresenceChannel.php index be6bc8d..2f4319b 100644 --- a/src/LaravelEcho/Pusher/Channels/PresenceChannel.php +++ b/src/LaravelEcho/Pusher/Channels/PresenceChannel.php @@ -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 [