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 195195 |
196196 */
197197
198- 'logger ' => \ BeyondCode \LaravelWebSockets \Statistics \Logger::class,
198+ 'logger ' => BeyondCode \LaravelWebSockets \Statistics \Logger \HttpStatisticsLogger ::class,
199199
200200 /*
201201 |--------------------------------------------------------------------------
Original file line number Diff line number Diff line change 118118 wssPort: this .port === null ? 6001 : this .port ,
119119 wsPath: this .app .path === null ? ' ' : this .app .path ,
120120 disableStats: true ,
121- authEndpoint: ' {{ url (' /auth' ) } }' ,
121+ authEndpoint: ' {{ url (request () -> path () . ' /auth' ) } }' ,
122122 auth: {
123123 headers: {
124124 ' X-CSRF-Token' : " {{ csrf_token () } }" ,
162162 },
163163
164164 loadChart () {
165- $ .getJSON (' {{ url (' /api' ) } } /' + this .app .id + ' /statistics' , (data ) => {
165+ $ .getJSON (' {{ url (request () -> path () . ' /api' ) } } /' + this .app .id + ' /statistics' , (data ) => {
166166
167167 let chartData = [
168168 {
246246 },
247247
248248 sendEvent () {
249- $ .post (' {{ url (' /event' ) } }' , {
249+ $ .post (' {{ url (request () -> path () . ' /event' ) } }' , {
250250 _token: ' {{ csrf_token () } }' ,
251251 key: this .app .key ,
252252 secret: this .app .secret ,
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ protected function configureStatisticsLogger()
6464 $ browser = new Browser ($ this ->loop , $ connector );
6565
6666 $ 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);
6868
6969 return new $ class (app (ChannelManager::class), $ browser );
7070 });
You can’t perform that action at this time.
0 commit comments