Friday 15 February 2013

Rails - run pusher in background -



Rails - run pusher in background -

i utilize pusher in rails-4 application.

the problem connection slow, execution of code becomes slower. time time next error:

pusher::httperror: execution expired (httpclient::connecttimeouterror)

i send signals via pusher code:

pusher[channel].trigger!(event, msg)

i execute in background, if exception thrown not break flow of app, , neither slow down. tried wrap phone call begin ... rescue didn't solve exception problem. of course of study if would, wouldn't solve slow-down problem want avoid.

information on performing asynchronous triggers can found here: https://github.com/pusher/pusher-gem#asynchronous-requests

this provides within info on catching/handling errors.

ruby-on-rails-4 pusher

No comments:

Post a Comment