sdwilsh / node-pulse Goto Github PK
View Code? Open in Web Editor NEWNode.js library for listening to Mozilla Pulse messages.
Node.js library for listening to Mozilla Pulse messages.
It might be nicer to do something like this:
var consumer = pulse.createConsumer('bugzilla');
instead of:
var consumer = new pulse.BugzillaConsumer();
for various reasons, including that it'd be easier to conditionally create a different consumer and you might forget the new
in front.
A better sample would be ideal so it's even easier to understand how to use this.
Since we now dispatch events, it'll be easy to add support for sending errors along to consumers too.
Request from @robarnold, but I'm hashing out the details. Debugging things is hard, and it'd be nice to be able to say something like connection.startRecording('filename')
and then connection.stopRecording()
to record a stream of events. Then you could just pulse.newRecordedConnection("filename", topics)
and have the events streamed to you.
Not sure if we would want to delay the recording to be the same time or not. Does @LegNeato have any thoughts on this?
This isn't hard to do, but we don't currently have any way to close the connection to the server.
amqp can deal with this, it's just a matter of figuring out the right connection. There is no reason to create multiple connections to pulse, so we can be more efficient when a consumer creates multiple consumers with the same queue name.
Just need to figure out the right abstraction here...
[see later comments to see how this has been morphed]
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.