laravel-websockets/src/WebSockets/Channels/PrivateChannel.php

27 lines
709 B
PHP
Raw Normal View History

2018-11-21 11:13:40 +00:00
<?php
2018-11-27 15:21:31 +00:00
namespace BeyondCode\LaravelWebSockets\WebSockets\Channels;
2018-11-21 11:13:40 +00:00
use BeyondCode\LaravelWebSockets\WebSockets\Exceptions\InvalidSignature;
2018-12-04 21:22:33 +00:00
use Ratchet\ConnectionInterface;
2020-03-04 09:58:39 +00:00
use stdClass;
2018-11-22 09:54:51 +00:00
2018-11-21 11:13:40 +00:00
class PrivateChannel extends Channel
{
/**
2020-08-18 17:21:22 +00:00
* Subscribe to the channel.
*
* @see https://pusher.com/docs/pusher_protocol#presence-channel-events
* @param \Ratchet\ConnectionInterface $connection
* @param \stdClass $payload
* @return void
* @throws InvalidSignature
*/
2018-11-22 09:54:51 +00:00
public function subscribe(ConnectionInterface $connection, stdClass $payload)
{
$this->verifySignature($connection, $payload);
2018-11-21 11:13:40 +00:00
2018-11-22 09:54:51 +00:00
parent::subscribe($connection, $payload);
}
2018-12-04 21:22:33 +00:00
}