Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit edcecff

Browse files
authored
Merge branch 'master' into 2.x
2 parents 08b836b + 8383054 commit edcecff

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

config/websockets.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@
195195
|
196196
*/
197197

198-
'logger' => \BeyondCode\LaravelWebSockets\Statistics\Logger::class,
198+
'logger' => BeyondCode\LaravelWebSockets\Statistics\Logger\HttpStatisticsLogger::class,
199199

200200
/*
201201
|--------------------------------------------------------------------------

resources/views/dashboard.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
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() }}",
@@ -162,7 +162,7 @@
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
{
@@ -246,7 +246,7 @@
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,

src/Console/StartWebSocketServer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)