This repository was archived by the owner on Feb 7, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 195
195
|
196
196
*/
197
197
198
- 'logger ' => \ BeyondCode \LaravelWebSockets \Statistics \Logger::class,
198
+ 'logger ' => BeyondCode \LaravelWebSockets \Statistics \Logger \HttpStatisticsLogger ::class,
199
199
200
200
/*
201
201
|--------------------------------------------------------------------------
Original file line number Diff line number Diff line change 118
118
wssPort: this .port === null ? 6001 : this .port ,
119
119
wsPath: this .app .path === null ? ' ' : this .app .path ,
120
120
disableStats: true ,
121
- authEndpoint: ' {{ url (' /auth' ) } }' ,
121
+ authEndpoint: ' {{ url (request () -> path () . ' /auth' ) } }' ,
122
122
auth: {
123
123
headers: {
124
124
' X-CSRF-Token' : " {{ csrf_token () } }" ,
162
162
},
163
163
164
164
loadChart () {
165
- $ .getJSON (' {{ url (' /api' ) } } /' + this .app .id + ' /statistics' , (data ) => {
165
+ $ .getJSON (' {{ url (request () -> path () . ' /api' ) } } /' + this .app .id + ' /statistics' , (data ) => {
166
166
167
167
let chartData = [
168
168
{
246
246
},
247
247
248
248
sendEvent () {
249
- $ .post (' {{ url (' /event' ) } }' , {
249
+ $ .post (' {{ url (request () -> path () . ' /event' ) } }' , {
250
250
_token: ' {{ csrf_token () } }' ,
251
251
key: this .app .key ,
252
252
secret: this .app .secret ,
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ protected function configureStatisticsLogger()
64
64
$ browser = new Browser ($ this ->loop , $ connector );
65
65
66
66
$ this ->laravel ->singleton (StatisticsLoggerInterface::class, function () use ($ browser ) {
67
- $ class = config ('websockets.statistics.logger ' , \BeyondCode \LaravelWebSockets \Statistics \Logger::class);
67
+ $ class = config ('websockets.statistics.logger ' , \BeyondCode \LaravelWebSockets \Statistics \Logger \HttpStatisticsLogger ::class);
68
68
69
69
return new $ class (app (ChannelManager::class), $ browser );
70
70
});
You can’t perform that action at this time.
0 commit comments