Files
einundzwanzig-portal/resources/js/bootstrap.js
Benjamin Takats ce8f14b056 remove lodash
2023-01-26 15:02:18 +01:00

26 lines
756 B
JavaScript

import Echo from 'laravel-echo'
import Pusher from 'pusher-js'
/**
* Echo exposes an expressive API for subscribing to channels and listening
* for events that are broadcast by Laravel. Echo and event broadcasting
* allows your team to easily build robust real-time web applications.
*/
window.Pusher = Pusher
window.Echo = new Echo({
broadcaster: 'pusher',
key: import.meta.env.VITE_PUSHER_APP_KEY,
wsHost: import.meta.env.VITE_PUSHER_HOST,
wsPort: import.meta.env.VITE_PUSHER_PORT,
wssPort: import.meta.env.VITE_PUSHER_PORT,
forceTLS: true,
encrypted: true,
disableStats: true,
enabledTransports: [
'ws',
'wss'
],
})