This commit is contained in:
freek 2018-12-01 15:09:05 +01:00
parent 7d97f49a2a
commit c9ec730dd4
4 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;

View File

@ -1,7 +1,7 @@
<?php
namespace BeyondCode\LaravelWebSockets\WebSockets\Messages;
interface RespondableMessage
interface PusherMessage
{
public function respond();
}

View File

@ -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());