@cocalc/backend
Version:
CoCalc backend functionality: functionality used by either the hub, the next.js server or the project.
11 lines (10 loc) • 396 B
TypeScript
/// <reference types="node" />
import type { Socket } from "net";
import { CoCalcSocket } from "./enable-messaging-protocol";
export declare function unlockSocket(socket: Socket, token: string): Promise<void>;
export declare function connectToLockedSocket({ port, host, token, timeout, }: {
port: number;
host?: string;
token: string;
timeout?: number;
}): Promise<CoCalcSocket>;