Questions tagged [private-pub]

Private Pub is a Ruby gem for use with Rails to publish and subscribe to messages through Faye.

Private Pub is a Ruby gem for use with Rails to publish and subscribe to messages through Faye. It allows you to easily provide real-time updates through an open socket without tying up a Rails process. All channels are private so users can only listen to events you subscribe them to.

Source: Github (Private_pub)

76 questions
2
votes
2 answers

"BUG segmentation fault" while working with private_pub gem

I was trying the code from this screencast http://railscasts.com/episodes/316-private-pub. I grabbed the code from github. However, whenever, I try to send a message from that app, the faye server shuts down giving following…
Jatin
  • 14,112
  • 16
  • 49
  • 78
2
votes
2 answers

unable to run faye server while using private_pub gem

I tried following along with this screencast http://railscasts.com/episodes/316-private-pub which implements basic realtime functionality using private_pub gem. I used rackup private_pub.ru -s thin -E production to start the faye server (thin…
2
votes
1 answer

How to access rails's data in gem?

I use faye and private pub as push server. I need to update user's status to online when he subscribes to channel. I have forked private_pub gem and changed some code, my application sends user_id, but I don't know how to find user and update his…
Alex
  • 2,309
  • 2
  • 16
  • 20
1
vote
0 answers

Chat module with Faye and Ruby on Rails taking too long to send/receive messages

I created a chat module for my RoR system with private_pub gem (that uses Faye) and it was working very well until some weeks ago. We tested and installed the module on Amazon AWS and it was in production mode with the rest of the application and…
Victor Ferreira
  • 6,151
  • 13
  • 64
  • 120
1
vote
1 answer

faye private_pub rails ubuntu connection refused

So I tried to set up a rails app using Bryan Bate's private_pub gem (a wrapper for the faye gem) to create chat channels. It works great on my local machine in dev mode. I'm also booting up the private_pub server on port 8080 at the same time my…
ChaiTea
  • 65
  • 1
  • 8
1
vote
1 answer

Rails create action Ajax returns Template Missing or Unknown Fomat

I'm trying to implement private_pub on a one-to-one chat app, without private_pub everything works fine just not ideal chat app since no websocket is used for autoupdates. I tried implementing as on RailsCasts of private_pub but i am getting either…
Nirajan Pokharel
  • 1,099
  • 1
  • 7
  • 15
1
vote
0 answers

Rails :private_pub does not work

I installed private_pub and coded. The problem is that the page I implemented private_pub doesn't update when I press send-button. I looked into console, but there was no error. Here is my code. messages/_message.html.erb
1
vote
0 answers

rails file uploading via AJAX with refile and remotipart + private_pub involved

I have a rails app with a real time chat (1v1). I'd like to implement a file upload function via AJAX where on submitting the file upload form the filename will show up in the chat without full page reload. I'm trying to use remotipart gem to be…
Sean Magyar
  • 2,360
  • 1
  • 25
  • 57
1
vote
1 answer

Run private_pub and faye in Amazon Linux EC2

I'm following this Rails chat tutorial and successfully make it locally. But I got trouble deploying it to Amazon EC2 Linux. Error loading the faye.js GET http://localhost:9292/faye.js net::ERR_CONNECTION_REFUSED Do I need to configure something…
aldrien.h
  • 3,437
  • 2
  • 30
  • 52
1
vote
1 answer

Using rackup command for thin server with a configuration file

I am trying to run the following command to run a server on a production environment: rackup private_pub.ru -s thin -E production The private_pub.ru looks like this: # Run with: rackup private_pub.ru -s thin -E production require…
RenegadeAndy
  • 5,440
  • 18
  • 70
  • 130
1
vote
0 answers

Hot to respond js in rails if action has no form?

I trying make notification system and have problem I need publish notification to the view with this: track_activity.js.erb <% publish_to "/notifications/new" do %> $("#activity").append("<%= j render(@activity) %>"); <% end %> and my…
user3089327
1
vote
1 answer

How to render a Rails partial when receiving an update from PrivatePub?

I have action in my application controller application_controller.rb before_filter :activity def track_activity(user, trackable, action = params[:action], author = current_user) Activity.create! user: user, trackable: trackable, action: action,…
user3089327
1
vote
1 answer

Using PrivatePub with Angular JS

I'm trying to use PrivatePub within my Angular app. I've a chat and messages are managed by AngularJS, my API behind is running with Rails, in my controller I use the helper to Publish to the channel, my problem is on the client side with the…
1
vote
1 answer

Nginx, Faye, Private...trying to figure out configuration

Using Nginx 1.6 with private_pub gem Here are my config files: private_pub.ru # Run with: rackup private_pub.ru -s thin -E production require "bundler/setup" require "yaml" require "faye" require…
Henri
  • 983
  • 3
  • 11
  • 29
1
vote
2 answers

Private_pub gem and Rails 4.1.1. The page doesn't get updated after sending a message

For some reason, the page doesn't get updated after sending a message. It works only after refreshing the page manually. I have partially followed this tutorial http://railscasts.com/episodes/316-private-pub but something is not right. Here are my…