CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/project/browser-websocket/query.ts
Views: 687
1
import { callback2 } from "@cocalc/util/async-utils";
2
3
export default async function query(client, opts) {
4
if (opts.changes) {
5
// maybe they could be; however, there's no good use case (?).
6
throw Error("changefeeds are not supported for api queries");
7
}
8
return await callback2(client.query.bind(client), opts);
9
}
10
11