mlx-bun library API
    Preparing search index...
    interface ModuleSockets {
        websocket: WebSocketHandler<ModuleSocketData>;
        upgrade(request: Request, server: Upgrader): Response | null | undefined;
    }
    Index
    websocket: WebSocketHandler<ModuleSocketData>
    • null: the request names none of the declared paths; undefined: the connection was upgraded (return it from fetch); a Response: the path is a socket but the request is not an upgrade.

      Parameters

      Returns Response | null | undefined