This repository was archived by the owner on Feb 7, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 1313 [
1414 'id ' => env ('PUSHER_APP_ID ' ),
1515 'name ' => env ('APP_NAME ' ),
16- 'server ' => null ,
1716 'key ' => env ('PUSHER_APP_KEY ' ),
1817 'secret ' => env ('PUSHER_APP_SECRET ' ),
1918 'enable_client_messages ' => false ,
Original file line number Diff line number Diff line change 109109 methods: {
110110 connect () {
111111 this .pusher = new Pusher (this .app .key , {
112- wsHost: this .app .server .length === 0 ? window .location .hostname : this .app .server ,
112+ wsHost: this .app .host .length === 0 ? window .location .hostname : this .app .host ,
113113 wsPort: this .port ,
114114 disableStats: true ,
115115 authEndpoint: ' /{{ request ()-> path () } } /auth' ,
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class App
1919 public $ name ;
2020
2121 /** @var string|null */
22- public $ server ;
22+ public $ host ;
2323
2424 /** @var bool */
2525 public $ clientMessagesEnabled = false ;
@@ -66,9 +66,9 @@ public function setName(string $appName)
6666 return $ this ;
6767 }
6868
69- public function setServer (string $ server )
69+ public function setHost (string $ host )
7070 {
71- $ this ->server = $ server ;
71+ $ this ->host = $ host ;
7272
7373 return $ this ;
7474 }
Original file line number Diff line number Diff line change @@ -67,8 +67,8 @@ protected function instanciate(?array $appAttributes): ?App
6767 $ app ->setName ($ appAttributes ['name ' ]);
6868 }
6969
70- if (isset ($ appAttributes ['server ' ])) {
71- $ app ->setServer ($ appAttributes ['server ' ]);
70+ if (isset ($ appAttributes ['host ' ])) {
71+ $ app ->setHost ($ appAttributes ['host ' ]);
7272 }
7373
7474 $ app
You can’t perform that action at this time.
0 commit comments