var Message = require('..');var msg = new Message;msg.push('foo')msg.push({ hello: 'world' })msg.push(new Buffer('hello'))var other = new Message(msg.toBuffer());console.log(other.shift());console.log(other.shift());console.log(other.shift());
API
Message
Initialize an empty message.
Message(buffer)
Decode the buffer AMP message to populate the Message.