Skip to content

Commit b6c5281

Browse files
author
ludovic
committed
Added debug info to readme
1 parent 7c90794 commit b6c5281

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,4 +200,19 @@ window.Echo = new Echo({
200200
});
201201
```
202202

203+
You can also enable console output by passing a `debug: true` otpion to your window.Echo intializer :
204+
```js
205+
import Echo from 'laravel-echo';
206+
import {broadcaster} from 'laravel-echo-api-gateway';
207+
208+
window.Echo = new Echo({
209+
broadcaster,
210+
// replace the placeholders
211+
host: 'wss://{api-ip}.execute-api.{region}.amazonaws.com/{stage}',
212+
debug: true
213+
});
214+
```
215+
216+
217+
203218
Lastly, you have to generate your assets by running Laravel Mix. After this step, you should be up and running.

0 commit comments

Comments
 (0)