We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 508602b commit 484a281Copy full SHA for 484a281
resources/js/echoPusher.js
@@ -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