Fix [socket.io] Unrecognized message: admin.reload

v1.18.x
Anil Mandepudi 8 years ago committed by GitHub
parent 1ec5539adc
commit c50486b47d

@ -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();

Loading…
Cancel
Save