Comments (7)
@andy318 please contact us at [email protected], and we'll get you setup with our final beta pre-release.
geremy
from ruby.
@andy318 also, have you enabled presence via your admin portal? please try that first...
geremy
from ruby.
Yes, i enabled presence before trying the above code
from ruby.
@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.
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.
sorry for the inconvenience @andy318 -- @blazeroot Can you be sure this if fixed in our 3.4 beta?
from ruby.
Fixed on pTest branch.
from ruby.
Related Issues (20)
- Publishing message error HOT 7
- Unsubscribe? HOT 4
- Exception inside SubscribeCallback is getting ignored
- "less than 100ms" HOT 4
- PubNub 3.4 for Ruby Released HOT 3
- Hardcoded log file HOT 4
- uninitialized constant Pubnub::Configuration::PUBNUB_VERSION HOT 8
- This application keeps requesting messages from the database forever HOT 5
- Synchronous publish? HOT 9
- Multi-process access in Heroku environment causes PubNub initialization to occasionally fail HOT 7
- Problems with PAM ttl in 3.5.0beta HOT 2
- 3.5.0 Release Candidate Available
- Logger invocations should use progname HOT 4
- event machine not initialized exception HOT 2
- Message object does allow values to be arrays HOT 3
- MXing with Ruby
- Publish on multiple channels doesn't work HOT 4
- Error on publish "eventmachine not initialized" HOT 19
- Retrieve message uuid from ruby api HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby.