Skip to content

Commit 484a281

Browse files
committed
add content about CoPilot or Larallama
1 parent 508602b commit 484a281

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

resources/js/echoPusher.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import Echo from 'laravel-echo';
2+
3+
import Pusher from 'pusher-js';
4+
window.Pusher = Pusher;
5+
6+
window.Echo = new Echo({
7+
broadcaster: 'reverb',
8+
key: import.meta.env.VITE_REVERB_APP_KEY,
9+
wsHost: import.meta.env.VITE_REVERB_HOST,
10+
wsPort: import.meta.env.VITE_REVERB_PORT ?? 80,
11+
wssPort: import.meta.env.VITE_REVERB_PORT ?? 443,
12+
forceTLS: (import.meta.env.VITE_REVERB_SCHEME ?? 'https') === 'https',
13+
enabledTransports: ['ws', 'wss'],
14+
});

0 commit comments

Comments
 (0)