This commit is contained in:
Andras Bacsai
2023-12-05 11:17:52 +01:00
parent 02989678be
commit ce49f26c53
11 changed files with 107 additions and 65 deletions

View File

@@ -1,25 +1,25 @@
import Alpine from "alpinejs";
// import Echo from 'laravel-echo';
// import Pusher from 'pusher-js';
import Echo from 'laravel-echo';
import Pusher from 'pusher-js';
import { createApp } from "vue";
import MagicBar from "./components/MagicBar.vue";
import Toaster from "../../vendor/masmerise/livewire-toaster/resources/js";
// window.Pusher = Pusher;
window.Pusher = Pusher;
// window.Echo = new Echo({
// broadcaster: 'pusher',
// cluster: window.location.hostname,
// key: import.meta.env.VITE_PUSHER_APP_KEY ?? 'coolify',
// wsHost: window.location.hostname,
// wsPort: 6001,
// wssPort: 6001,
// forceTLS: false,
// encrypted: true,
// disableStats: false,
// enableLogging: true,
// enabledTransports: ['ws', 'wss'],
// });
window.Echo = new Echo({
broadcaster: 'pusher',
cluster: window.location.hostname,
key: import.meta.env.VITE_PUSHER_APP_KEY,
wsHost: window.location.hostname,
wsPort: 6001,
wssPort: 6001,
forceTLS: false,
encrypted: true,
disableStats: false,
enableLogging: true,
enabledTransports: ['ws', 'wss'],
});
Alpine.plugin(Toaster);