GithubHelp home page GithubHelp logo

arloliu / fastmq Goto Github PK

View Code? Open in Web Editor NEW
40.0 3.0 5.0 872 KB

High performance message broker implementation for node.js with multiple network transports support.

License: MIT License

JavaScript 100.00%
message-broker nodejs ipc javascript

fastmq's People

Contributors

arloliu avatar dependabot[bot] avatar mpecic 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

Watchers

 avatar  avatar  avatar

fastmq's Issues

Callback methods from any subscriber are short-lived

Thank you for the great tool, while I was using it, subscriber callbacks do not run anything

You can run anything in the subscribe callback as long as it's not another callback, which looks buggy to me, as callbacks can have anything really. ๐Ÿ˜ž

Reconnect with initial failure

I'm trying to connect to TCP server which may or may not be started, and want to keep trying if it is not. The client code is as follows:

const channelPeer = FastMQ.Client.connect('peer.#', {
    host: '127.0.1.2',
    port: 1234,
    reconnect: true
}, (err, channel) => {
    if (err) {
        console.error('Peer connect error', err);
        return;
    }
    console.log('Channel connected');
    channel.onError((err) => console.error('Peer error', err));
    channel.onReconnect(() => console.log('Peer reconnect'));
}).catch(err => console.error('Peer initial connect error', err)).finally(() => console.log('Promise is done'));

The problem is that if it fails to connect initially, channelPeer promise is never resolved or rejected.

I'll send a pull request with a solution which rejects the promise on initial failure. It works fine for me, but of course only with callback function, as above. Maybe you have some other idea on how to fix this?

registerChannel function cannot get result from promise

image
hello my names is hasbi

I try to run project with simple example publish but it take a time and cannot happen anymore, i use localhost to connect this project , can you help me or teach me how to use this project?

thank you

logo contribution

Hi @arloliu . I reviewed your warehouse and found that you didn't have a logo. I am a logo designer. I contribute to the open source community by designing logos. And i I wanted to design a logo for this warehouse. Please let me know what you think. Thanks!

FASTMQ

Readme file view;

fast

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.