Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/project/browser-websocket/query.ts
1447 views
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