ryanb/private_pub — Issue #34: Ajax get request on subscribe
Author: wuiscmc
Created: 2012-02-13 12:33:31+00:00
State: open

Hey everybody,

I don't know if this is the correct place to post this but I was wondering the reason of the following behaviour:

In model.rb : publish_to "/channel", id: self.id .
in application.js, the PrivatePub.subscribe performs a get request to a controller passing id.
It the end the controller renders the action but it does it **as many times as clients are subscribed**.

Why is this happening?