Real-time and web sockets

Out of the box, Node on Fire enables real-time streams on all your models. It only takes a minute to write a chat app.

The streams module uses PostgreSQL's LISTEN and NOTIFY commands to push new messages over web sockets to users. This is all you have to do:

$scope.messageStream = MessageModel.stream({}, {limit: 30, orderBy:{createdAt: -1}});

In your AngularJS view you simply show the stream's results.