integratedhub/utils/request_handler.ts
2026-01-20 09:02:26 -06:00

32 lines
534 B
TypeScript

import { Cookie } from "$std/http/cookie.ts";
import * as iron from "iron";
import { UserConnection } from "../utils/database.ts";
export interface SendMessage {
type: string;
data: any;
}
export interface Question {
message: SendMessage;
}
export interface Answer {
n: number;
roman: string;
words: string;
}
interface ConnectionLifetime {
device_id: string;
socket: WebSocket;
createdOn: number;
}
interface HeaderSession {
started_on: number;
device_id: string;
user_name: string;
user_id: string;
}