I use express for my Node application. I need to have some real time updates, such as facebook notifications. I need to integrate derby.js (which is building frames at the top of the express) only to trigger real-time notification in the express application. How can I complete this task?
Syntax
Expressjs I use
app.get('/', function(req, res){
The above thing will accept the number of notifications from the database and be displayed in the field of view.
Derbyjs sample syntax for real-time updates
app.view.make('Body' , 'Notications: <div>{notificationcount}</div>' ); app.get('/', function (page, model) {
I need only one section (field with counting notifications) from requests received from the displayed viewing page, from the derby. So the box will be updated in real time in the database.
How can we integrate derby view into express? Is it possible?
source share