Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 5153568

Browse files
committed
Using the injected $port
1 parent b174ffb commit 5153568

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

resources/views/dashboard.blade.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@ class="rounded-full px-3 py-1 inline-block text-sm"
225225
chart: null,
226226
pusher: null,
227227
app: null,
228-
port: {{ config('websockets.dashboard.port') }},
229228
apps: @json($apps),
230229
form: {
231230
channel: null,
@@ -243,8 +242,8 @@ class="rounded-full px-3 py-1 inline-block text-sm"
243242
244243
this.pusher = new Pusher(this.app.key, {
245244
wsHost: this.app.host === null ? window.location.hostname : this.app.host,
246-
wsPort: this.port === null ? 6001 : this.port,
247-
wssPort: this.port === null ? 6001 : this.port,
245+
wsPort: {{ $port }},
246+
wssPort: {{ $port }},
248247
wsPath: this.app.path === null ? '' : this.app.path,
249248
disableStats: true,
250249
authEndpoint: `${window.baseURL}/auth`,

0 commit comments

Comments
 (0)