added wss tools 7

This commit is contained in:
2026-06-18 19:44:23 +03:30
parent 017ab348c7
commit c15136c5e7
4 changed files with 125 additions and 9 deletions
@@ -4,6 +4,7 @@ namespace App\Http\Controllers\Site;
use App\Http\Controllers\Controller;
use App\Services\LivePriceCacheService;
use App\Services\PriceBroadcastService;
use App\Services\PriceStreamService;
use Illuminate\Http\Request;
use Symfony\Component\HttpFoundation\StreamedResponse;
@@ -44,6 +45,11 @@ class PriceStreamController extends Controller
$send('last', $last);
}
$list = app(PriceBroadcastService::class)->buildListPayload();
if (is_array($list) && $list !== []) {
$send('list', $list);
}
$lastId = $service->currentSeq();
$heartbeatTicks = 0;