malt

0.0.17 • Public • Published

Malt - Realtime Model Locator for Beanpole

Example:

 
var malt = require('malt'),
models = malt.models;
 
 
var ChatComment = models.Collection.extend({
    channel : '/chat/comments'
});
 
 
var cliqly = malt.connect('cliqly.spice.io', function()
{
    
    var comments = new ChatComment();
 
    //server is now pusing new comments
    comments.sync({
        add: function(comment)
        {
            console.log(comment.message)
        } 
    });
    
});
 

/malt/

    Package Sidebar

    Install

    npm i malt

    Weekly Downloads

    23

    Version

    0.0.17

    License

    none

    Last publish

    Collaborators

    • architectd
    • crcn