cohort-app.js should require (i.e.) cohort.js, which gets stored as app.set("cohort"). Its initializer returns a Promise and loads active events from the DB into itself. It should be accessible from HTTP endpoints and from WebSocket code. It should handle stripping fields for response objects to all destinations.
cohort-app.js should require (i.e.) cohort.js, which gets stored as app.set("cohort"). Its initializer returns a Promise and loads active events from the DB into itself. It should be accessible from HTTP endpoints and from WebSocket code. It should handle stripping fields for response objects to all destinations.
12, #66, #73, #69