Git Product home page Git Product logo

docs's Introduction

docs's People

Contributors

eternal-rise avatar klarpen avatar romangolchuk avatar tshemsedinov avatar vkondratiuk482 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docs's Issues

Add blockquotes

Feature request

Recently, GitHub added nice blocks for emphasizing important information. WDYT about start using them?

https://github.com/orgs/community/discussions/16925

Note

Highlights information that users should take into account, even when skimming.

Tip

Optional information to help a user be more successful.

Important

Crucial information necessary for users to succeed.

Warning

Critical content demanding immediate user attention due to potential risks.

Caution

Negative potential consequences of an action.

Last thesis in error-handling guidelines isn't reproducible

The documentation section Error-handling guidelines contains the sentences

Docs/content/en/LAYERS.md

Lines 163 to 166 in 3f3b82e

How to override error codes: `throw new Error('Method is not implemented', 404);`
This will take error message from code: `{"callback":1,"error":{"message":"Not found","code":404}}`
If you specify unknown code like this: `throw new Error('Method is not implemented', 12345);` this will generate: `"Internal Server Error"` with `"code":500`.

Trying to reproduce this behaviour with Example project brings unexpected results. The way I had tried:

  1. Setup database
  2. Start the example server
  3. Open http://127.0.0.1:8000 in the Chrome
  4. Open DevTools with network and console tabs
  5. Click on api WebSocket request and there on Messages tab. Check that auth/signin request was successful with the status logged.
  6. Write in console await api.example.customException();
  7. The result {message: "Custom ecxeption", code: 12345} despite documentation says that unknown error code will generate: "Internal Server Error" with "code":500.
  8. Change error code in the file application/api/example/customException.js to 404. Save and check that update has been reloaded by server.
  9. Call again in console await api.example.customException();
  10. The result {message: "Custom ecxeption", code: 404} instead of automatic replacement of the message with "Not found" as being told at the documentation.
  11. The same behaviour with public endpoint.

What is the desired latest behaviour: that mentioned in documentation OR that actually works in Example?

Is there internal communication mechanism between application workers?

Scenario:

  • Application serves WebSocket protocol
  • Clients subscribe to the WebSockets room/channel via sending message to API using metacom message schema. The incoming request is handling by worker W1. The logic was taken from this example
  • At some moment, domain logic initiates application.scheduler.add() that should invoke some task in 1 minute.
  • The scheduler task execution is launching on worker W2 (default application behaviour). The task should broadcast WebSocket message to all subscribed clients connected to the application.
  • Because the Room Map object is initiated in W1 worker (application logic by default), the W2 worker doesn't contain the Room Map object, and this is logical.
  • How we can implement that internal communication between application workers? So we can broadcast some messages/events from all application workers to some master worker, and then broadcast messages to all connected WebSocket clients?

Thank you!

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.