Unable to publish message with Faye Ruby client -
first off, i've at:
i tried recommendations , still not working me.
heres code:
def broadcast(channel, data=nil, &block) return if rails.env.test? if data.nil? && block_given? data = capture(&block) end client = faye::client.new(app_config['faye_url']) client.publish(channel, data) end
i tried using net::http.post_form , server froze no errors or warnings or anything. i've tried putting em.run block no luck. can publish faye curl fine , sent on subscribers reason ruby client isn't working.
i'm using faye-rails, ruby 1.9.3 , rails 2.3.13.
the server behind nginx, tried both ngnix ip/port , thin ip/port. still didn't work.
it works fine in development, not in production.
update:
i disabled both websockets , eventsource force use long polling work through ngnix without errors.
it running rack middleware shouldn't need additional ports.
Comments
Post a Comment