Merge pull request #435 from JuanDMeGon/master

Required changes after pusher-js v6
This commit is contained in:
rennokki 2020-08-13 08:09:16 +03:00 committed by GitHub
commit 7925089f57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -111,6 +111,7 @@ window.Echo = new Echo({
key: 'your-pusher-key',
wsHost: window.location.hostname,
wsPort: 6001,
forceTLS: false,
disableStats: true,
});
```

View File

@ -49,7 +49,7 @@ php artisan websockets:serve
## Client configuration
When your SSL settings are in place and working, you still need to tell Laravel Echo that it should make use of it.
You can do this by specifying the `encrypted` property in your JavaScript file, like this:
You can do this by specifying the `forceTLS` property in your JavaScript file, like this:
```js
import Echo from "laravel-echo"
@ -62,7 +62,7 @@ window.Echo = new Echo({
wsHost: window.location.hostname,
wsPort: 6001,
disableStats: true,
encrypted: true
forceTLS: true
});
```