Add echo port via mode
continuous-integration/drone/push Build is passing Details

This commit is contained in:
philipp lang 2024-06-28 12:10:18 +02:00
parent 8c820ab24d
commit 75d9301033
1 changed files with 4 additions and 2 deletions

View File

@ -6,6 +6,8 @@ const toast = useToast();
window.Pusher = Pusher;
console.log();
function handleJobEvent(event, type = 'success') {
if (event.message) {
toast[type](event.message);
@ -16,8 +18,8 @@ var echo = new Echo({
broadcaster: 'pusher',
key: 'adremakey',
wsHost: window.location.hostname,
wsPort: 80,
wssPort: 443,
wsPort: import.meta.env.MODE === 'development' ? 6001 : 80,
wssPort: import.meta.env.MODE === 'development' ? 6001 : 443,
forceTLS: false,
disableStats: true,
cluster: 'adrema',