Using the injected $port

This commit is contained in:
Alex Renoki 2020-08-18 14:22:09 +03:00
parent b174ffb6e7
commit 5153568867
1 changed files with 2 additions and 3 deletions

View File

@ -225,7 +225,6 @@
chart: null,
pusher: null,
app: null,
port: {{ config('websockets.dashboard.port') }},
apps: @json($apps),
form: {
channel: null,
@ -243,8 +242,8 @@
this.pusher = new Pusher(this.app.key, {
wsHost: this.app.host === null ? window.location.hostname : this.app.host,
wsPort: this.port === null ? 6001 : this.port,
wssPort: this.port === null ? 6001 : this.port,
wsPort: {{ $port }},
wssPort: {{ $port }},
wsPath: this.app.path === null ? '' : this.app.path,
disableStats: true,
authEndpoint: `${window.baseURL}/auth`,