felixheck / akaya Goto Github PK
View Code? Open in Web Editor NEWGenerate URIs based on named hapi.js routes their parameters
License: BSD 3-Clause "New" or "Revised" License
Generate URIs based on named hapi.js routes their parameters
License: BSD 3-Clause "New" or "Revised" License
tail
async
/await
Hey! I'm trying this out with a hapi server that has three connections:
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:
When the server contains more than one connection, each server.connections array member provides its own connection.lookup() method.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.