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