b
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user