How to use the strong-remoting.getCurrentContext function in strong-remoting

To help you get started, we’ve selected a few strong-remoting examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github strongloop / loopback / lib / current-context.js View on Github external
module.exports = function(loopback) {
  juggler.getCurrentContext =
  remoting.getCurrentContext =
  loopback.getCurrentContext = function() {
    throw new Error(g.f(
      '%s was removed in version 3.0. See %s for more details.',
      'loopback.getCurrentContext()',
      'http://loopback.io/doc/en/lb2/Using-current-context.html',
    ));
  };

  loopback.runInContext = function(fn) {
    throw new Error(g.f(
      '%s was removed in version 3.0. See %s for more details.',
      'loopback.runInContext()',
      'http://loopback.io/doc/en/lb2/Using-current-context.html',
    ));
  };