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 13
13
[
14
14
'id ' => env ('PUSHER_APP_ID ' ),
15
15
'name ' => env ('APP_NAME ' ),
16
- 'server ' => null ,
17
16
'key ' => env ('PUSHER_APP_KEY ' ),
18
17
'secret ' => env ('PUSHER_APP_SECRET ' ),
19
18
'enable_client_messages ' => false ,
Original file line number Diff line number Diff line change 109
109
methods: {
110
110
connect () {
111
111
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 ,
113
113
wsPort: this .port ,
114
114
disableStats: true ,
115
115
authEndpoint: ' /{{ request ()-> path () } } /auth' ,
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class App
19
19
public $ name ;
20
20
21
21
/** @var string|null */
22
- public $ server ;
22
+ public $ host ;
23
23
24
24
/** @var bool */
25
25
public $ clientMessagesEnabled = false ;
@@ -66,9 +66,9 @@ public function setName(string $appName)
66
66
return $ this ;
67
67
}
68
68
69
- public function setServer (string $ server )
69
+ public function setHost (string $ host )
70
70
{
71
- $ this ->server = $ server ;
71
+ $ this ->host = $ host ;
72
72
73
73
return $ this ;
74
74
}
Original file line number Diff line number Diff line change @@ -67,8 +67,8 @@ protected function instanciate(?array $appAttributes): ?App
67
67
$ app ->setName ($ appAttributes ['name ' ]);
68
68
}
69
69
70
- if (isset ($ appAttributes ['server ' ])) {
71
- $ app ->setServer ($ appAttributes ['server ' ]);
70
+ if (isset ($ appAttributes ['host ' ])) {
71
+ $ app ->setHost ($ appAttributes ['host ' ]);
72
72
}
73
73
74
74
$ app
You can’t perform that action at this time.
0 commit comments