Skip to content

Commit

Permalink
Added debug info to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ludovic committed Nov 13, 2024
1 parent 7c90794 commit b6c5281
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,4 +200,19 @@ window.Echo = new Echo({
});
```

You can also enable console output by passing a `debug: true` otpion to your window.Echo intializer :
```js
import Echo from 'laravel-echo';
import {broadcaster} from 'laravel-echo-api-gateway';
window.Echo = new Echo({
broadcaster,
// replace the placeholders
host: 'wss://{api-ip}.execute-api.{region}.amazonaws.com/{stage}',
debug: true
});
```



Lastly, you have to generate your assets by running Laravel Mix. After this step, you should be up and running.

0 comments on commit b6c5281

Please sign in to comment.