master

laravel/framework

Last updated at: 29/12/2023 09:20

NullBroadcaster.php

TLDR

The NullBroadcaster class is a subclass of Broadcaster and provides empty implementations of the auth, validAuthenticationResponse, and broadcast methods.

Methods

auth

This method takes a $request argument and does not modify or return anything.

validAuthenticationResponse

This method takes $request and $result arguments and does not modify or return anything.

broadcast

This method takes $channels, $event, and $payload arguments and does not modify or return anything.

<?php

namespace Illuminate\Broadcasting\Broadcasters;

class NullBroadcaster extends Broadcaster
{
    /**
     * {@inheritdoc}
     */
    public function auth($request)
    {
        //
    }

    /**
     * {@inheritdoc}
     */
    public function validAuthenticationResponse($request, $result)
    {
        //
    }

    /**
     * {@inheritdoc}
     */
    public function broadcast(array $channels, $event, array $payload = [])
    {
        //
    }
}