Skip to content

Commit 99adec3

Browse files
committedNov 12, 2024
Updated README.md to include example for authentication
1 parent dd369ad commit 99adec3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎README.md

+2
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ window.Echo = new Echo({
196196
broadcaster,
197197
// replace the placeholders
198198
host: 'wss://{api-ip}.execute-api.{region}.amazonaws.com/{stage}',
199+
authEndpoint: '{auth-url}/broadcasting/auth', // Optional: Use if you have a separate authentication endpoint
200+
bearerToken: '{token}', // Optional: Use if you need a Bearer Token for authentication
199201
});
200202
```
201203

0 commit comments

Comments
 (0)