Broadcaster.php 761B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace Illuminate\Contracts\Broadcasting;
  3. interface Broadcaster
  4. {
  5. /**
  6. * Authenticate the incoming request for a given channel.
  7. *
  8. * @param \Illuminate\Http\Request $request
  9. * @return mixed
  10. */
  11. public function auth($request);
  12. /**
  13. * Return the valid authentication response.
  14. *
  15. * @param \Illuminate\Http\Request $request
  16. * @param mixed $result
  17. * @return mixed
  18. */
  19. public function validAuthenticationResponse($request, $result);
  20. /**
  21. * Broadcast the given event.
  22. *
  23. * @param array $channels
  24. * @param string $event
  25. * @param array $payload
  26. * @return void
  27. */
  28. public function broadcast(array $channels, $event, array $payload = []);
  29. }