Skip to content

Commit

Permalink
Add missing configs to echo.js stub
Browse files Browse the repository at this point in the history
  • Loading branch information
tonysm committed Jan 19, 2021
1 parent 285f31f commit faa447c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion stubs/resources/js/echo.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ const echo = new Echo({
broadcaster: 'pusher',
key: process.env.MIX_PUSHER_APP_KEY,
cluster: process.env.MIX_PUSHER_APP_CLUSTER,
forceTLS: true
forceTLS: process.env.MIX_PUSHER_USE_SSL === "true",
disableStats: true,
wsHost: process.env.MIX_PUSHER_HOST,
wsPort: process.env.MIX_PUSHER_PORT || null,
});

export default echo;

0 comments on commit faa447c

Please sign in to comment.