rename
This commit is contained in:
parent
7d97f49a2a
commit
c9ec730dd4
|
|
@ -6,7 +6,7 @@ use BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManager;
|
|||
use Ratchet\ConnectionInterface;
|
||||
use stdClass;
|
||||
|
||||
class PusherChannelProtocolMessage implements RespondableMessage
|
||||
class PusherChannelProtocolMessage implements PusherMessage
|
||||
{
|
||||
/** @var \stdClass */
|
||||
protected $payload;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ use BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManager;
|
|||
use Ratchet\ConnectionInterface;
|
||||
use stdClass;
|
||||
|
||||
class PusherClientMessage implements RespondableMessage
|
||||
class PusherClientMessage implements PusherMessage
|
||||
{
|
||||
/** \stdClass */
|
||||
protected $payload;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
namespace BeyondCode\LaravelWebSockets\WebSockets\Messages;
|
||||
|
||||
interface RespondableMessage
|
||||
interface PusherMessage
|
||||
{
|
||||
public function respond();
|
||||
}
|
||||
|
|
@ -11,7 +11,7 @@ class RespondableMessageFactory
|
|||
public static function createForMessage(
|
||||
MessageInterface $message,
|
||||
ConnectionInterface $connection,
|
||||
ChannelManager $channelManager): RespondableMessage
|
||||
ChannelManager $channelManager): PusherMessage
|
||||
{
|
||||
$payload = json_decode($message->getPayload());
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue