|
|
|
@ -49,11 +49,6 @@ SocketAdmin.before = function(socket, method, data, next) {
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Reload deprecated as of v1.1.2+, remove in v2.x
|
|
|
|
|
*/
|
|
|
|
|
SocketAdmin.reload = SocketAdmin.restart;
|
|
|
|
|
|
|
|
|
|
SocketAdmin.restart = function(socket, data, callback) {
|
|
|
|
|
events.log({
|
|
|
|
|
type: 'restart',
|
|
|
|
@ -64,6 +59,11 @@ SocketAdmin.restart = function(socket, data, callback) {
|
|
|
|
|
callback();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Reload deprecated as of v1.1.2+, remove in v2.x
|
|
|
|
|
*/
|
|
|
|
|
SocketAdmin.reload = SocketAdmin.restart;
|
|
|
|
|
|
|
|
|
|
SocketAdmin.fireEvent = function(socket, data, callback) {
|
|
|
|
|
index.server.emit(data.name, data.payload || {});
|
|
|
|
|
callback();
|
|
|
|
|