spire-io/jquery.spire.js — Issue #9: add options param to subscribe method
Author: jagg81
Created: 2011-11-17 23:30:16+00:00
State: open
Labels: feature

The idea is to have a way to pass optional params to the subscribe method.
i.e. the signature would be something like:
> $.spire.messages.subscribe = function(name, callback, params){...}

This would come handy in cases where we need to add a timestamp for Long-Polling that gets passed to
> $.spire.requests.subscriptions.get(options, callback){...}

...this way first request for new messages doesn't fetch old messages (default behavior).

Here is a Gist that may serve as reference of how I temporally patched it in my current code.
https://gist.github.com/49a206c61585e29ad706