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; }