Alright so I had this private channel that I actually deleted a bit time ago, but it keeps on trying to authenticate it...
[3:17:38 PM] - EtqURfdxFGpzBmSmAAAA joined channel: public-channel-1
[3:17:41 PM] - Preparing authentication request to: http://localhost.php
[3:17:41 PM] - Sending auth request to: http://localhost.php/broadcasting/auth
[3:17:41 PM] - Error authenticating MhxVL-RaA6Ca7aN0AAAB for private-live-chat
Error: getaddrinfo ENOTFOUND localhost.php
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26) {
errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'http://localhost.php'
}
Error sending authentication request.
So I deleted the private-live-chat channel and I made public one but it keeps on trying to verify it...
<?php
namespace App\Events;
use Illuminate\Broadcasting\Channel;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
use Illuminate\Queue\SerializesModels;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Broadcasting\InteractsWithSockets;
class NewMessageEvent implements ShouldBroadcast
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public $username;
public $message;
/**
* Create a new event instance.
*
* @param string $message
* @param string $username
*/
public function __construct(string $message, string $username)
{
$this->username = $username;
$this->message = $message;
}
/**
* Get the channels the event should broadcast on.
*
* @return Channel|array
*/
public function broadcastOn()
{
return new Channel('live-chat');
}
}
I am using redis for this.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire