Code Monkey home page Code Monkey logo

akaya's Issues

Add Support for Hapi v17

  • remove tail
  • support async/await
  • remove multiple connections
  • update dependencies (node, npm & hapi)
  • update documentation
  • update examples

Multiple Server Connections

Hey! I'm trying this out with a hapi server that has three connections:

  • admin
  • api
  • client

Registering akaya with a hapi server that has multiple connections causes it to fail when calling server.lookup(id) method. It works fine when registered to a single connection, but what do you think about supporting server labels so it can be registered with multiple connections? Maybe we can pass the label along so it can select a connection?server.select(label).lookup(id) ... or maybe I'm just missing something and it's already supported?

Here's a copy of the actual error:

Debug: internal, implementation, error
  Error: Uncaught error: Method not available when the selection has more than one connection or none
  at Object.exports.assert (node_modules/hapi/node_modules/hoek/lib/index.js:736:11)
  at internals.Plugin.lookup (node_modules/hapi/lib/plugin.js:526:10)
  at decorator [as aka] (node_modules/akaya/lib/index.js:120:42)

More info:

Hapi server.lookup

When the server contains more than one connection, each server.connections array member provides its own connection.lookup() method.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.