index.js: connection to web socket happens as part of a callback which is executed after login check. different event is emitted based on whether user is authenticated or anonymous
Listening for authenticated vs unauthenicated connections. More detailed logging. Content is filtered based on user permissions
Fixed bug in permissions objectId comparison
MAJOR UPDATE - REDIS IS NOW A PROJECT REQUIREMENT. Using redis to store/retrieve alerts.
Alert data model is no longer capped, since we arent going to be using the mongoDb tailable cursor going forward
Base controller: when an entity is created, a redis pubsub message is broadcasted.
Alert socket routes: using two redis clients, one to handle key-value store operations, the other to handle pubsub (specifically sub) operations. Logic to retrieve items from redis list key abstracted to separate method. Subscribing to entity CRUD operation messages. Added logic to process said messages.
BaseController: volatile operations use redis to broadcast their completion. Code cleanup in alertModel and alertSocketRotues
Changed the way errors are handled when created a doc