Giter Site home page Giter Site logo

pusher's People

Contributors

bjufre avatar brenthargrave avatar dependabot-preview[bot] avatar edgurgel avatar grossvogel avatar joshk avatar lowks avatar lucas-nelson avatar meadsteve avatar thiamsantos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pusher's Issues

Req for information: configuration settings for bitstamp

Hi,

this is not a bug report, but I'm stuck with using pusher from elixir, and have not been able to find help elsewhere. I try to connect to bitstamp's API to get realtime bitcoin trading information. But I don't know how to configure the Pusher library in order to connect.

Pusher.configure! requires the following parameters:

  1. server name ("ws.pusherapp.com")
  2. port (443)
  3. "app_id"
  4. "app_key" ("de504dc5763aeef9ff52")
  5. "secret"

I know 1, 2, 4, but I have not been able to figure out 3 and 5. Can you help with this?

iex(1)> Pusher.configure!("ws.pusherapp.com", 443, "", "de504dc5763aeef9ff52", "")
:ok
iex(2)> Pusher.channels
** (HTTPoison.Error) :closed
    lib/pusher/http_client.ex:2: Pusher.HttpClient.request!/5
    lib/pusher.ex:33: Pusher.channels/0

Thanks
Christoph

Gracefully handle errors returned from pusher

Occasionally pusher will respond with an error rather than the expected body. e.g. "The data content of this event exceeds the allowed maximum (10240 bytes). See http://pusher.com/docs/server_api_guide/server_publishing_events for more info\n". Currently when this happens, the body will be decoded as though it were JSX (https://github.com/edgurgel/pusher/blob/master/lib/pusher/http_client.ex#L14), causing the process to crash. Instead, it would be nice if the error were handled gracefully.

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.