Skip to content

Commit

Permalink
Merge pull request #2 from Naoray/patch-1
Browse files Browse the repository at this point in the history
Adding wssPort to Echo
  • Loading branch information
chrisbjr authored Mar 27, 2019
2 parents 1310936 + 3482070 commit 73a2377
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 73a2377

Please sign in to comment.