Using the injected $port
This commit is contained in:
parent
b174ffb6e7
commit
5153568867
|
|
@ -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`,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue