logout(callback) {
var self = this;
self._loggingOut.set(true);
self.connection.apply('logout', [], {
wait: true
}, function (error, result) {
self._loggingOut.set(false);
if (error) {
callback && callback(error);
} else {
self.makeClientLoggedOut();
callback && callback();
}
});
}
That is the code for logging out on the client. I see it calls some ‘logout’ method on the server
How do I ‘get the method’ i.e do something that method is called, without creating a new logout Method or custom logout method.
Thoughts?