This commit is contained in:
2025-07-27 19:49:35 -04:00
parent 2302290d34
commit 941c8400c0
23 changed files with 293 additions and 50 deletions

View File

@@ -36,7 +36,8 @@ await routeImporter(AppRoot.app, 'src/', [
'routes/root',
'routes/api',
'routes/auth',
'routes/accounts'
'routes/accounts',
'routes/match'
]);
// deno-lint-ignore require-await
@@ -71,8 +72,8 @@ const server = Deno.serve({ hostname: "10.0.1.39", port: 13370, onListen: addr =
availableTransports: [{transport:"WebSockets",transferFormats:["Text"]}]
}), { headers: { 'Content-Type': 'application/json' }});
}
if (req.headers.get('Connection')?.includes('Upgrade') && req.headers.get('Upgrade') === 'websocket') {
const isSignalR = req.headers.has('id');
if (req.headers.get('Connection')?.includes('Upgrade') && req.headers.get('Upgrade')?.includes('websocket')) {
const isSignalR = url.searchParams.has('id');
if (isSignalR) {
try {
const authHeader = req.headers.get('Authorization');