Do not json encode it when it is being encoded within the publish class

This commit is contained in:
Nathan Rzepecki 2020-08-21 19:38:59 +08:00
parent 0a7864a54d
commit a490f78f09
1 changed files with 2 additions and 2 deletions

View File

@ -30,12 +30,12 @@ class RedisDriverTest extends TestCase
],
];
$payload = json_encode([
$payload = [
'appId' => '1234',
'event' => 'test',
'data' => $channelData,
'socket' => $connection->socketId,
]);
];
$this->getSubscribeClient()->onMessage('1234:test-channel', $payload);