dl
Version:
DreamLab Libs
12 lines (9 loc) • 402 B
JavaScript
var JsonRpcMethod = require('core').jsonrpc.JsonRpcMethod;
var Event = require('core').event.Event;
var HealthCheckMethod = exports.HealthCheckMethod = function () {
JsonRpcMethod.call(this);
};
HealthCheckMethod.prototype = Object.create(JsonRpcMethod.prototype);
HealthCheckMethod.prototype.execute = function () {
this.dispatchEvent(new Event(JsonRpcMethod.Event.OK, 'OK'));
};