2018-11-21 11:13:40 +00:00
|
|
|
<?php
|
|
|
|
|
|
2018-11-27 14:55:30 +00:00
|
|
|
namespace BeyondCode\LaravelWebSockets\WebSocketServer\Pusher\Channels;
|
2018-11-21 11:13:40 +00:00
|
|
|
|
2018-11-22 09:54:51 +00:00
|
|
|
use Ratchet\ConnectionInterface;
|
|
|
|
|
use stdClass;
|
|
|
|
|
|
2018-11-21 11:13:40 +00:00
|
|
|
class PrivateChannel extends Channel
|
|
|
|
|
{
|
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-11-21 11:13:40 +00:00
|
|
|
}
|