diff --git a/resources/views/dashboard.blade.php b/resources/views/dashboard.blade.php index 2650848..35b1434 100644 --- a/resources/views/dashboard.blade.php +++ b/resources/views/dashboard.blade.php @@ -106,11 +106,16 @@ logs: [], }, + mounted() { + this.app = this.apps[0] || null; + }, + methods: { connect() { this.pusher = new Pusher(this.app.key, { wsHost: window.location.hostname, wsPort: this.port, + wssPort: this.port, disableStats: true, authEndpoint: '/{{ request()->path() }}/auth', auth: { diff --git a/src/Console/StartWebSocketServer.php b/src/Console/StartWebSocketServer.php index e7ae29a..10ca513 100644 --- a/src/Console/StartWebSocketServer.php +++ b/src/Console/StartWebSocketServer.php @@ -48,6 +48,10 @@ class StartWebSocketServer extends Command { $connector = new Connector($this->loop, [ 'dns' => new DnsResolver(), + 'tls' => [ + 'verify_peer' => config('app.env') === 'production', + 'verify_peer_name' => config('app.env') === 'production' + ] ]); $browser = new Browser($this->loop, $connector);