Giter VIP home page Giter VIP logo

Comments (1)

mdpye avatar mdpye commented on July 30, 2024

Firstly, this is the wrong repo. You appear to be using pusher-ruby-client. This is a library for interacting with the HTTP API for publishing and querying data about channels.

your sample data by default does not work, you have to remove ENV[] from your code to get rid of a 'app_key not found' error.

It works if invoked as described at the top of the script. The ENV lookup reads the variable from the environment so you can execute the example on your own app without having to edit the file. In your case:

PUSHER_KEY=cb65d0a7a72cd94adf1f ruby ./hello_pusher.rb

As alluded to in the error log (App is encrypted (SSL only)), the app you are connecting to does not allow non-SSL connections, so your connection is being refused. Try the hello_pusher_ssl.rb example.

socket['ticker.155'].bind('hello') do |data|
  pp data
end

Additionally, once you have made a secure connection, you will still not see any output because you're binding to events named hello, and there are no events named hello being published to the channel. Try the event name being published.

I'm going to close this issue, as it's not relevant to the repo. If you have any more problems, please file against https://github.com/pusher/pusher-ruby-client/

from pusher-http-ruby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.