Comments (6)
We can add ignoreNonWsRequest
(I will think about a better name) to Server options.
from server.
We call request
for health check feature.
- The proper API to own HTTP callbacks is
loguxServer.http()
. Am I right that you can’t use because you want to use syntax sugar API likepolka
? Can we add something to make it compatible withpolka
? - Maybe you have in mind some another API to keep Logux server health check and another
request
processor?
from server.
I imagine this passing custom http server is an advanced use case, where people are aware what they are doing. Would adding a note in documentation that Logux requires GET /health
endpoint be enough?
I need to use some advanced connect middlewares. This is entirely possible, as long as Logux is not listening on its own. In my view it's better to allow utilising well-known patterns, as oppose to trying do everything in Logux itself. What do you think?
from server.
I added disableHttpServer
to next
branch 5e4210e
You can switch from npm version to next
from GitHub to test it:
yarn remove @logux/server && yarn add @logux/server@logux/server#next
from server.
Hi @ai. Sorry for late response, we were busy with other features. I'm afraid I cannot test it locally:
❯ yarn add @logux/server@logux/server#next
➤ YN0000: ┌ Resolution step
➤ YN0013: │ @logux/server@https://github.com/logux/server.git#commit=2f8deab4c59941074177ec08ae08a61cc33da9bf can't be found in the cache and will be fetched from GitHub
➤ YN0032: │ fsevents@npm:2.3.2: Implicit dependencies on node-gyp are discouraged
➤ YN0013: │ @logux/server@https://github.com/logux/server.git#commit=2f8deab4c59941074177ec08ae08a61cc33da9bf can't be found in the cache and will be fetched from the remot
➤ YN0001: │ Error: @logux/server@https://github.com/logux/server.git#commit=2f8deab4c59941074177ec08ae08a61cc33da9bf: Assertion failed: Unsupported workflow
at /Users/wojciech/Projects/akeero-logux/.yarn/releases/yarn-3.2.1.cjs:427:1576
at async ar.mktempPromise (/Users/wojciech/Projects/akeero-logux/.yarn/releases/yarn-3.2.1.cjs:319:63575)
at async /Users/wojciech/Projects/akeero-logux/.yarn/releases/yarn-3.2.1.cjs:424:16
at async ar.mktempPromise (/Users/wojciech/Projects/akeero-logux/.yarn/releases/yarn-3.2.1.cjs:319:63575)
at async /Users/wojciech/Projects/akeero-logux/.yarn/releases/yarn-3.2.1.cjs:419:2513
➤ YN0000: └ Completed in 5s 129ms
➤ YN0000: Failed with errors in 5s 135ms
from server.
Another way to test it just to copy-paste files from the repo to node_modules/@logux/server
from server.
Related Issues (20)
- Change the repo description HOT 1
- Maximum call stack size exceeded HOT 6
- `SyncMap`: allow the developer to halt operation finish HOT 1
- Allow to return void in addSyncMap HOT 7
- Question API HOT 1
- Multi-subscribe or Push subscribtions to client? HOT 2
- Wrong meta key in Context#sendBack HOT 3
- Safer shutdown
- Better Host output in human readable log
- Save context between steps HOT 2
- Do not resend action back to the creator HOT 1
- Brute-force protcetion for control server HOT 1
- Rename LOGUX_CONTROL_PASSWORD to LOGUX_CONTROL_SECRET HOT 1
- Extra control server protection with IP mask HOT 1
- Allow cookie based auth HOT 1
- Federatio support
- Add Server#autoloadModules HOT 2
- HTTP proxy server rejects request with { "version": 3, ... } HOT 1
- Add verbose mode for the server to provides additional details HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from server.