MCPcopy
hub / github.com/parse-community/parse-server / createLiveQueryServer

Method createLiveQueryServer

src/ParseServer.ts:517–530  ·  view source on GitHub ↗

* Helper method to create a liveQuery server * @static * @param {Server} httpServer an optional http server to pass * @param {LiveQueryServerOptions} config options for the liveQueryServer * @param {ParseServerOptions} options options for the ParseServer * @returns {Promise<ParseLiveQ

(
    httpServer,
    config: LiveQueryServerOptions,
    options: ParseServerOptions
  )

Source from the content-addressed store, hash-verified

515 * @returns {Promise<ParseLiveQueryServer>} the live query server instance
516 */
517 static async createLiveQueryServer(
518 httpServer,
519 config: LiveQueryServerOptions,
520 options: ParseServerOptions
521 ): Promise<ParseLiveQueryServer> {
522 if (!httpServer || (config && config.port)) {
523 var app = express();
524 httpServer = require('http').createServer(app);
525 httpServer.listen(config.port);
526 }
527 const server = new ParseLiveQueryServer(httpServer, config, options);
528 await server.connect();
529 return server;
530 }
531
532 static async verifyServerUrl() {
533 // perform a health check on the serverURL value

Callers 6

serverFunction · 0.80
benchmarkLiveQueryRegexFunction · 0.80
startAppMethod · 0.80
createGQLFromParseServerFunction · 0.80

Calls 2

connectMethod · 0.95
createServerMethod · 0.80

Tested by 1

createGQLFromParseServerFunction · 0.64