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

easily integrate socket.io and rails

I am using rails for more than 2 years now,,now I am building a real time application which is simple social network ,using private_pub gem for commenting and notifications ,I read about nodejs and I am learning it for the 3rd week now ,nodejs is…
Remon Amin
  • 1,506
  • 2
  • 19
  • 44
5
votes
2 answers

PrivatePub is not defined error Rails 3.2 private pub

I want to use private pub gem in my rails application. I implement with railscast 316 After rails g private_pub:install my private_pub.yml file: development: server: "http://0.0.0.0:9292/faye" secret_token: "secret" test: server:…
5
votes
3 answers

Private pub on heroku

I am developing a chat application using rails 3.2.12 and a great gem called private pub, for which you can find a screencast here. It is built on top of faye and enables you to easily build real time chats by pushing messages. Now, deploying it on…
Dennis Hackethal
  • 13,662
  • 12
  • 66
  • 115
5
votes
2 answers

cannot load such file -- thin (LoadError) while running rackup private_pub.ru -s thin -E production command

I am referring to the pub railscast tutorial and have followed all steps properly but while running last command i.e. rackup private_pub.ru -s thin -E production to rackup the faye server I am getting following…
Deep Nishad
  • 181
  • 1
  • 2
  • 7
4
votes
1 answer

How can I find the number of current subscriptions using PrivatePub and Faye in rails

I am using a ruby gem called PrivatePub and this uses Faye to offer PubSub messaging The PrivatePub gem offers a couple of view based helpers to subscribe / send a message to a particular topic. I am looking to extend PrivatePub to include an API…
RenegadeAndy
  • 5,440
  • 18
  • 70
  • 130
4
votes
1 answer

How to properly test asynchronous faye server?

I am using the private_pub gem to have real-time functionality in my app. I feel really guilty, but I have dropped testing this app! In order to make sure everything works manually, I have to have two browsers open communicating with each other.…
Kites
  • 1,098
  • 9
  • 21
3
votes
0 answers

Could not configure private pub on server connection being refused

I am trying to configure private pub on my server on an ip, same configuration was working earlier on different server , but not working on current. config/private_pub.yml development: server: "http://52.76.xx.xx:9292/faye" #server:…
Mahi L
  • 75
  • 1
  • 5
3
votes
1 answer

Rails app can't connect to private_pub on Vagrant

I have a rails app that uses private_pub. Somehow I can't get my app to connect to private_pub. Is there a way to bind private_pub to 0.0.0.0? Run rails server vagrant@vagrant:/vagrant$ rails s -b 0.0.0.0 => Booting Thin => Rails 4.2.2 application…
steamboy
  • 1,162
  • 5
  • 20
  • 37
3
votes
0 answers

Find user's online status

I am using private_pub 1.0.3 gem which is build on top of faye and able to use it in my localhost. Now I want to implement functionality to check if user online status is online or offline using this gem. I am totally new to web sockets and found…
przbadu
  • 5,769
  • 5
  • 42
  • 67
2
votes
0 answers

rails private-pub gem: chat does not work in iphone/ipad safari

I implemented the chat functionality in my RoR app based on the 'private pub' gem and Faye. I launched it on heroku and it works on laptop browsers, however, not on iphone/ipad Safari (messages don't auto refresh). I found a similar question but was…
Daniel
  • 21
  • 3
2
votes
1 answer

error installing private pub on live server in rails 4

I am using private pub for one of my projects. Its working fine on localhost but when I deploy it on live server it giving following error: Errno::ECONNREFUSED in CommentsController#new Connection refused - connect(2) for "202.164.34.20" port…
2
votes
2 answers

Rails: Faye works for me, but still gives some JS error in the console for some unknown reason, Should I be worried?

I'm using Private_Pub gem which is built on Faye, and I'm using a another app for the Faye which is provided by this blog the project that I found. to get Faye running on an app and my actual site on another app. The error in FireFox console: The…
0bserver07
  • 3,390
  • 1
  • 28
  • 56
2
votes
2 answers

Using private_pub with SSL

I have setup private pub with SSL according to https://github.com/ryanb/private_pub#serving-faye-over-https-with-thin, also adding in daemonize: true (tested with and without). I can browse to https://mydomain.com:4443/faye.js and that loads. There…
Chris Edwards
  • 3,514
  • 2
  • 33
  • 40
2
votes
1 answer

How do I create Private channel between two user

I have been implementing Faye server for chat application. Currently we have 400000 users in our table. Each user can chat with one another privately. But I don’t know how to implement private channel between two users using Faye or private pub for…
Braham Shakti
  • 1,408
  • 4
  • 22
  • 39
2
votes
1 answer

Private Pub on Heroku | Rails 3

I'm having some trouble understanding which port the private_pub gem uses on heroku. Everything works locally, and I can start up the extra dyno on heroku. I figure there has to be a way to set this dynamically. My Procfile pubsub: bundle exec…
1
2 3 4 5 6