We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0f4340 commit 2e557d7Copy full SHA for 2e557d7
src/Event.php
@@ -93,14 +93,18 @@ public static function connectionEstablished(Event $event): bool
93
return $event->getEvent() === 'pusher:connection_established';
94
}
95
96
- public static function subscribeOn(string $channel, string $authKey = null): array
+ public static function subscribeOn(string $channel, string $authKey = null, string $channelData = null): array
97
{
98
$data = ['channel' => $channel];
99
100
if ($authKey) {
101
$data['auth'] = $authKey;
102
103
104
+ if ($channelData) {
105
+ $data['channel_data'] = $channelData;
106
+ }
107
+
108
return ['event' => 'pusher:subscribe', 'data' => $data];
109
110
0 commit comments