From 5153568867bc98aa3f391ff1664b86f31d48b6c6 Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Tue, 18 Aug 2020 14:22:09 +0300 Subject: [PATCH] Using the injected $port --- resources/views/dashboard.blade.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/resources/views/dashboard.blade.php b/resources/views/dashboard.blade.php index 33a69b1..9b7a200 100644 --- a/resources/views/dashboard.blade.php +++ b/resources/views/dashboard.blade.php @@ -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`,