From 34820708e2daa983e2e814053e1c324e0baf82ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krishan=20K=C3=B6nig?= Date: Tue, 26 Mar 2019 15:18:47 +0100 Subject: [PATCH] Adding wssPort to Echo I am currently facing the problem, that this package won't connect via a port if `encrypted` is set to `true`, since it does not fill the `wssPort` property on Echo. --- resources/js/nova-echo.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/js/nova-echo.js b/resources/js/nova-echo.js index 03ffb69..277edbd 100644 --- a/resources/js/nova-echo.js +++ b/resources/js/nova-echo.js @@ -26,6 +26,10 @@ if (document.head.querySelector('meta[name="pusher_port"]') !== null) { echoOptions.wsPort = document.head.querySelector('meta[name="pusher_port"]').content } +if (document.head.querySelector('meta[name="pusher_port"]') !== null) { + echoOptions.wssPort = document.head.querySelector('meta[name="pusher_port"]').content +} + if (document.head.querySelector('meta[name="pusher_encrypted"]') !== null) { echoOptions.encrypted = (document.head.querySelector('meta[name="pusher_encrypted"]').content === '1') }