Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
33 lines (29 sloc)
761 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Illuminate\Contracts\Broadcasting; | |
interface Broadcaster | |
{ | |
/** | |
* Authenticate the incoming request for a given channel. | |
* | |
* @param \Illuminate\Http\Request $request | |
* @return mixed | |
*/ | |
public function auth($request); | |
/** | |
* Return the valid authentication response. | |
* | |
* @param \Illuminate\Http\Request $request | |
* @param mixed $result | |
* @return mixed | |
*/ | |
public function validAuthenticationResponse($request, $result); | |
/** | |
* Broadcast the given event. | |
* | |
* @param array $channels | |
* @param string $event | |
* @param array $payload | |
* @return void | |
*/ | |
public function broadcast(array $channels, $event, array $payload = []); | |
} |