appendto/amplify — Issue #46: Subscribe to multiple pubs with the same function
Author: iangilman
Created: 2012-01-12 21:51:01+00:00
State: open

Sometimes I'd like to handle a number of similar topics with the same function. I'm imagining something like this:

amplify.subscribe(["foo", "bar", "baz"], function(data, topic) {
alert("got a " + topic + " with " + data);
});

For that matter, a handy feature for debugging and logging would be subscribeAll().