Skip to content

Commit 73a2377

Browse files
authored
Merge pull request #2 from Naoray/patch-1
Adding wssPort to Echo
2 parents 1310936 + 3482070 commit 73a2377

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)