sailsCasts

Learning about sails.js one screencast at a time.

Episode 20: Adding Real-time Events to Models in 4 Lines of Code

| Comments

In episode 20 you’ll use an app to explore and understand how socket.io works within sails using a client side app that renders the majority of its views via ajax. With four lines of code, the app monitors the user model and alerts any subscribing sockets with changes to the model.

Special thanks to Srinivas Tamada and his on adding sound via jquery and can found at (“http://www.9lessons.info/2013/04/play-notification-sound-using-jquery.html”).

The repo for this episode can be found at: (“https://github.com/irlnathan/uglyGuineaPig”)