The encrypted property was removed on pusher-js 6
the encrypted property was removed in favor of forceTLS one, officially on pusher-js 6.
This commit is contained in:
parent
c5c11612e3
commit
ab0ac05de7
|
|
@ -49,7 +49,7 @@ php artisan websockets:serve
|
||||||
## Client configuration
|
## 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.
|
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
|
```js
|
||||||
import Echo from "laravel-echo"
|
import Echo from "laravel-echo"
|
||||||
|
|
@ -62,7 +62,7 @@ window.Echo = new Echo({
|
||||||
wsHost: window.location.hostname,
|
wsHost: window.location.hostname,
|
||||||
wsPort: 6001,
|
wsPort: 6001,
|
||||||
disableStats: true,
|
disableStats: true,
|
||||||
encrypted: true
|
forceTLS: true
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue