MCPcopy Create free account
hub / github.com/parse-community/parse-server / beforeConnect

Function beforeConnect

spec/ParseLiveQuery.spec.js:477–485  ·  view source on GitHub ↗
(req)

Source from the content-addressed store, hash-verified

475 expect(req.user).toBeUndefined();
476 },
477 beforeConnect(req) {
478 expect(req.event).toBe('connect');
479 expect(req.clients).toBe(0);
480 expect(req.subscriptions).toBe(0);
481 expect(req.useMasterKey).toBe(false);
482 expect(req.installationId).toBeDefined();
483 expect(req.user).toBeUndefined();
484 expect(req.client).toBeDefined();
485 },
486 };
487 spyOn(hooks, 'beforeSubscribe').and.callThrough();
488 spyOn(hooks, 'beforeConnect').and.callThrough();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…