= frame.headers['destination'] this.queue.getCollection().insert( {"message":frame.body.toString("utf-8"), "destination":destination}, {safe:true}, function(err, doc){ if(err){ StompFrame.build('ERROR', {"message-id" : JSON.stringify(doc._id), "message" : "message could not be sent."}, “”, true) .serialize(client) } } ); } publishing Wednesday, April 11, 12