Disable session.*() from high level API.

This commit is contained in:
Julien Fontanet 2015-02-11 14:16:38 +01:00
parent 807da8f696
commit 097d195f00

View File

@ -299,8 +299,11 @@ function Xo(opts) {
}
Xo.prototype.call = function (method, params) {
// TODO: prevent session.*() from being because it may interfere
// Prevent session.*() from being because it may interfere
// with this class session management.
if (startsWith(method, 'session.')) {
throw new Error('session.*() methods are disabled from this interface');
}
return connect.call(this).then(function () {
var self = this;