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
0
votes
1 answer

Rails gem Private_Pub facebook like chat implementation

I'm trying to implement kind of a Facebook chat using the private_pub gem and I'm having the following problem: let's say two people are logged in the application user1 and user2. user1 sends a message to user2; but user2 won't receive that message…
0
votes
1 answer

private_pub gem rails and https error

I've been using private_pub in production for over a year now and recently I've just moved the app from http to https. We have a signed cert already installed and everything else is working within the application but I'm getting the following error…
Sparkmasterflex
  • 1,837
  • 1
  • 20
  • 33
0
votes
0 answers

Connection Time Out: Private_Pub + SSL + Nginx

I have implemented Private_Pub with SSL and I am running that over port 4443 as recommended in: https://github.com/ryanb/private_pub#serving-faye-over-https-with-thin However, whenever I actually use the private_pub service I receive the following…
hec
  • 569
  • 1
  • 6
  • 12
0
votes
1 answer

Rails: How to avoid AbstractController::DoubleRenderError when using live update / Faye?

I'm using Private Pub which is a gem built on top of Faye for live updating through my controller. I'm having trouble to be able to make a fallback for the Live Update Render, in case Faye server failed to serve. Is there anyway to go around this…
0bserver07
  • 3,390
  • 1
  • 28
  • 56
0
votes
0 answers

Faye message publication delay

I'm using a rails application with faye server for pub/sub (private_pub, faye 1.0, puma server) on VMWare Ubuntu 12.04 instance. Everything is OK when instance is running on PC (or app deployed to the server), but on laptop every message publication…
Resure
  • 436
  • 7
  • 17
0
votes
1 answer

Private pub issue in rails application

I have article model and i want to show a notification such as a flash message on the home page to the users when they log in or who is logged in already when a new article is posted using private_pub gem articles_controller.rb class…
Mostafa Hussein
  • 11,063
  • 3
  • 36
  • 61
0
votes
0 answers

how to build a real chat application in rails 3?

I'm building a web app which has chatting as a feature. I've decided to use the private pub gem for this. But in private pub you have to subscribe to a channel with this code snippet <%= subscribe_to "/messages/new" %> Now i want this code to be…
Akshay Takkar
  • 500
  • 1
  • 7
  • 21
0
votes
1 answer

Production private_pub - 401 Unauthorized Error

I've been testing with private_pub/faye in development and UAT for a while now, without any issues. When I moved the code to production though I'm getting an error as soon as I go to the page that uses private_pub for a chat interface. I'm not…
Planty
  • 112
  • 7
0
votes
1 answer

How to call a faye disconnect event from a button press

My problem is related to disconnect event of Faye. I can easily subscribe to a channel from java script and i can also handle the /meta/subscribe and /meta/connect. But I want some thing like a button in my html.erb file and using that i want to…
Braham Shakti
  • 1,408
  • 4
  • 22
  • 39
0
votes
2 answers

Faye channel subcription and publishing

While experimenting with faye(private-pub in rails) i got a pretty basic doubt.Do we need to subscribe to a channel before publishing to that channel? Please provide some resources for learning faye. Thanks in advance :)
Sai Suman
  • 47
  • 7
0
votes
1 answer

How do i know if user has received the push notification sent from privatepub gem

Can any one tell me the solution related to PrivatePub. Well i am using privatepub gem for push notification to ios app. I wanted to know is it possible to get any kind of response which states that the particular user has received the notification…
Braham Shakti
  • 1,408
  • 4
  • 22
  • 39
0
votes
2 answers

private_pub gem gives "undefined method `publish_to'" error

I am creating small chat app with rails, I am using private_pub (built on top of faye) gem by Ryan. I followed all steps as per his screencast , but i can't get it working. I am getting below error undefined method `publish_to' for…
Senthil
  • 946
  • 1
  • 14
  • 34
0
votes
0 answers

ruby on rails 3 error running faye server with private_pub

I am trying to run the code from this tutorial : http://railscasts.com/episodes/316-private-pub I downloaded the source from github and followed the instructions but then I run rackup private_pub.ru -s thin -E production the thin server doesn't…
Jatin
  • 14,112
  • 16
  • 49
  • 78
0
votes
2 answers

Using private_pub gem

I wanted to use private_pub gem to follow along with this screencast : http://railscasts.com/episodes/316-private-pub However, when I run rails g private_pub:install, I get this error Could not find hiredis-0.3.2 in any of the sources. Running…
Jatin
  • 14,112
  • 16
  • 49
  • 78
-1
votes
1 answer

Private_pub console.log doesn't work

Why can't you use console.log inside a publish_to call? create.js.erb: <% publish_to @path do %> console.log("i'm here") <% end %>
Will Taylor
  • 1,994
  • 2
  • 23
  • 36