Skip to content

Commit

Permalink
Adding wssPort to Echo
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Naoray authored Mar 26, 2019
1 parent 1310936 commit 3482070
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resources/js/nova-echo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
Expand Down

0 comments on commit 3482070

Please sign in to comment.