Code Monkey home page Code Monkey logo

Comments (7)

geremyCohen avatar geremyCohen commented on July 30, 2024

@andy318 please contact us at [email protected], and we'll get you setup with our final beta pre-release.
geremy

from ruby.

geremyCohen avatar geremyCohen commented on July 30, 2024

@andy318 also, have you enabled presence via your admin portal? please try that first...
geremy

from ruby.

andy318 avatar andy318 commented on July 30, 2024

Yes, i enabled presence before trying the above code

from ruby.

geremyCohen avatar geremyCohen commented on July 30, 2024

@andy318 ok, please contact us at [email protected], please include your project, so I can try to reproduce, and we'll also get you on our invite-only beta :)

from ruby.

andy318 avatar andy318 commented on July 30, 2024

I tried the beta gem and encountered the same problem. Finally figured out the cause. The example in README.md shows code where the channel name is a symbol. This causes problems and i'm guessing its because when the request is converted to a HTTP request, the symbol is converted to a string and when the response is received and the channel is compared with the one stored in the Subscription object, the comparison takes place between a string and a symbol so the callback in this piece of code does not get called -

def fire_callback_for(envelope)
      $log.debug "CALLING SUBSCRIPTION CALLBACK FOR CHANNEL #{@channel}" if envelope.channel == @channel

      @callback.call envelope if envelope.channel == @channel
      $log.debug "AFTER CALLING SUBSCRIPTION CALLBACK FOR CHANNEL #{@channel}"

    end

If i switch to using a string type for the channel name, it works fine.

from ruby.

geremyCohen avatar geremyCohen commented on July 30, 2024

sorry for the inconvenience @andy318 -- @blazeroot Can you be sure this if fixed in our 3.4 beta?

from ruby.

blazeroot avatar blazeroot commented on July 30, 2024

Fixed on pTest branch.

from 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.