Broadcaster.php
1 month ago
Factory.php
2 years ago
HasBroadcastChannel.php
2 years ago
ShouldBeUnique.php
1 month ago
ShouldBroadcast.php
2 years ago
ShouldBroadcastNow.php
2 years ago
Broadcaster.php
35 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWPSCOPED\Illuminate\Contracts\Broadcasting; |
| 4 | |
| 5 | /** @internal */ |
| 6 | interface Broadcaster |
| 7 | { |
| 8 | /** |
| 9 | * Authenticate the incoming request for a given channel. |
| 10 | * |
| 11 | * @param \Illuminate\Http\Request $request |
| 12 | * @return mixed |
| 13 | */ |
| 14 | public function auth($request); |
| 15 | /** |
| 16 | * Return the valid authentication response. |
| 17 | * |
| 18 | * @param \Illuminate\Http\Request $request |
| 19 | * @param mixed $result |
| 20 | * @return mixed |
| 21 | */ |
| 22 | public function validAuthenticationResponse($request, $result); |
| 23 | /** |
| 24 | * Broadcast the given event. |
| 25 | * |
| 26 | * @param array $channels |
| 27 | * @param string $event |
| 28 | * @param array $payload |
| 29 | * @return void |
| 30 | * |
| 31 | * @throws \Illuminate\Broadcasting\BroadcastException |
| 32 | */ |
| 33 | public function broadcast(array $channels, $event, array $payload = []); |
| 34 | } |
| 35 |