arloliu / fastmq Goto Github PK
View Code? Open in Web Editor NEWHigh performance message broker implementation for node.js with multiple network transports support.
License: MIT License
High performance message broker implementation for node.js with multiple network transports support.
License: MIT License
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. ๐
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?
Let say my worker getting crash immediately and all previous job that not running successfully need to re-running again.
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!
Readme file view;
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.