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
2 answers

Websocket connection failed with nginx and faye

I'm trying to introduce chatting to my Rails app. For this purpose I used gem private_pub and it works perfectly in development mode. In production I was using Apache + Passenger, but I couldn't configure Faye with it, so I changed Apache to Nginx.…
MaruniakS
  • 145
  • 1
  • 12
0
votes
1 answer

Private_pub installing in Mac OS X 10.11 - Failed to build gem native extension for http_parser.rb

I try to install private_pub in my Rails 4 app. When I run bundle install I got such problem: Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /Users/serj/.rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20160614-8815-15skczg.rb…
ExiRe
  • 4,727
  • 7
  • 47
  • 92
0
votes
1 answer

private_pub Faye.js is blocked

I adding an instant chat (like gmail chat) in my rails application and I am using private_pub and faye. The app seems to work so far, but users can only see messages after they refresh the page. I inspected the element and it shows that faye.js is…
Alex
  • 193
  • 1
  • 2
  • 12
0
votes
1 answer

Publish a Sidekiq schedule job through Private Pub in rails

I am using 'Sidekiq' to schedule reminder about any task on given time. Its working perfect. Now i want to append it to notify on my navbar, for it i am using 'Private Pub' to publish the reminder message. Here is code of Sidekiq Worker. class…
0
votes
1 answer

Travis CI. How to make pass specs which use Faye server?

Private pub gem needs additional Faye server to service message queues. It is started in parallel to rails server with command: rackup private_pub.ru -s thin -E production This server is also needed in order some specs to pass. So I include its…
Andrey Khataev
  • 1,303
  • 6
  • 20
  • 46
0
votes
1 answer

Differentiate users with private_pub

I'm trying to display a simple chat between users. I would like to design it like iMessages, to differentiate the senders, but I just can't figure out how to do so. No matter what I try, it always seems like message.sender == current_user , even for…
Pierre Olivier Tran
  • 1,669
  • 4
  • 24
  • 40
0
votes
1 answer

How could i use Email id as custom channel name using private_pub gem in ruby on rails?

I am using private_pub gem for chat. When im using email_is of user as custom channel name it throws invalid channel error. How could i used email_id as channel name?
0
votes
0 answers

Rails gem class override implementation load order

I want to replace a particular ruby file in a gem I am using. The gem I am using is private_pub : https://github.com/ryanb/private_pub and the file I am looking to replace is :…
RenegadeAndy
  • 5,440
  • 18
  • 70
  • 130
0
votes
1 answer

How to have custom layout for user B when a new comment is added by a user A using faye in Rails?

I have built a discussion rails app using faye. It works but there is one issue. Expected Result: If user A comments, then in his screen his image should be on right hand side. And when user B see's the message in real time in his chat window, User…
Sahil
  • 3,338
  • 1
  • 21
  • 43
0
votes
0 answers

Ruby on Rails chat Application not working on Openshift - Private_pub

I'm working on an application in which chat is a module too . I'm using private_pub gem for handshake of connections - all things are working fine on production except chat . while on localhost , everything including chat is also fine . My…
Mani
  • 2,391
  • 5
  • 37
  • 81
0
votes
1 answer

How can I mix inline ruby code with my client side RJS?

I'm using PrivatePub and I'm experiencing some weird behaviour here. Before going through the details please note that I'm using Ruby 1.9.3 and Rails 3.2.2. Let's say I have TestsController: class TestsController < ApplicationController def index …
Eki Eqbal
  • 5,779
  • 9
  • 47
  • 81
0
votes
1 answer

Can't change server address with private_pub on rails 4

I have been using private pub on my local machine and it works fine but now that I'm trying my rails app on a private vps it's a different story. I have been trying to change the server string in the private_pub.yml to the ip of my vps, but I…
Badr Tazi
  • 749
  • 1
  • 6
  • 20
0
votes
1 answer

How to deploy Rails App using private_pub to heroku

I am trying to run my app on heroku which is using private_pub gem . Here in my local server I am running it perfectly . How can I push this app in heroku and run there perfectly . Here is my gem file : source 'https://rubygems.org' gem…
Nilay Singh
  • 2,201
  • 6
  • 31
  • 61
0
votes
1 answer

Unread messages counter

I am creating a simple chatting app on rails 4. The controllers, models and views are created but the functionality is still incomplete. I have 2 tables in my database, conversations and messages. The conversation table holds two fields, sender id…
Mohammad Areeb Siddiqui
  • 9,795
  • 14
  • 71
  • 113
0
votes
1 answer

private_pub "incorrect signature" issue in production

I am using private_pub gem to achieve real time chat in my app. Now while this works perfectly fine on staging, I am unable to get it working on production. Both servers are Amazon Ec2 instances with Ubuntu OS. In production I get an error when I…
Sarcastic
  • 677
  • 5
  • 14