bootstrap.js 767 B

12345678910111213141516171819202122
  1. import axios from 'axios';
  2. window.axios = axios;
  3. window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
  4. /**
  5. * Echo exposes an expressive API for subscribing to channels and listening
  6. * for events that are broadcast by Laravel. Echo and event broadcasting
  7. * allow your team to quickly build robust real-time web applications.
  8. */
  9. import { configureEcho } from "@laravel/echo-vue";
  10. configureEcho({
  11. broadcaster: 'reverb',
  12. key: import.meta.env.VITE_REVERB_APP_KEY,
  13. wsHost: import.meta.env.VITE_REVERB_HOST,
  14. wsPort: import.meta.env.VITE_REVERB_PORT ?? 80,
  15. wssPort: import.meta.env.VITE_REVERB_PORT ?? 443,
  16. forceTLS: (import.meta.env.VITE_REVERB_SCHEME ?? 'https') === 'https',
  17. enabledTransports: ['ws', 'wss'],
  18. });