first commit
This commit is contained in:
commit
aa7869eb33
386 files changed
+69375
No files matched your search
@@ -0,0 +1,27 @@
|
||||
var log = require('../core/log');
|
||||
var moment = require('moment');
|
||||
var _ = require('lodash');
|
||||
var Server = require('../web/server.js');
|
||||
|
||||
var Actor = function(next) {
|
||||
_.bindAll(this);
|
||||
|
||||
this.server = new Server();
|
||||
this.server.setup(next);
|
||||
}
|
||||
|
||||
Actor.prototype.init = function(data) {
|
||||
this.server.broadcastHistory(data);
|
||||
};
|
||||
|
||||
Actor.prototype.processCandle = function(candle, next) {
|
||||
this.server.broadcastCandle(candle);
|
||||
|
||||
next();
|
||||
};
|
||||
|
||||
Actor.prototype.processAdvice = function(advice) {
|
||||
this.server.broadcastAdvice(advice);
|
||||
};
|
||||
|
||||
module.exports = Actor;
|
||||
Reference in new issue
Block a user