Skip to content

Commit 3482070

Browse files
authored
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.
1 parent 1310936 commit 3482070

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

resources/js/nova-echo.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ if (document.head.querySelector('meta[name="pusher_port"]') !== null) {
2626
echoOptions.wsPort = document.head.querySelector('meta[name="pusher_port"]').content
2727
}
2828

29+
if (document.head.querySelector('meta[name="pusher_port"]') !== null) {
30+
echoOptions.wssPort = document.head.querySelector('meta[name="pusher_port"]').content
31+
}
32+
2933
if (document.head.querySelector('meta[name="pusher_encrypted"]') !== null) {
3034
echoOptions.encrypted = (document.head.querySelector('meta[name="pusher_encrypted"]').content === '1')
3135
}

0 commit comments

Comments
 (0)