jnak / apnmachine Goto Github PK
View Code? Open in Web Editor NEWAn EventMachine APN server & a Redis-backed library used in production at Zapkast to push iOS notifications
An EventMachine APN server & a Redis-backed library used in production at Zapkast to push iOS notifications
I just added the command line option to accept a redis URI such as redis://username:password@server:port. This is useful if you're storing your redis URI in an env car such as Heroku does.
I was wondering if you'd be against removing the individual host and port options and just having a single URI that defaults to redis://localhost:6379.
Let me know what you think and I can send a pull request.
I think I'm doing this right, but I keep getting this error in the log:
"Unable to handle: undefined local variable or method `host' for #ApnMachine::Server::Client:0x007fbe720a21d8"
Here is my code:
ApnMachine::Config.redis = Redis.new
notification = ApnMachine::Notification.new
notification.device_token = my_device_token
notification.alert = 'hello'
notification.push
Rails 3.2.6 - everything running localhost.
Hi,
I'm getting strange error:
gems/apnmachine-0.1.1/lib/apnmachine/server/server.rb:56:in `rescue in block (2 levels) in start!': uninitialized constant ApnMachine::Server::Server::OpenSSL (NameError)
when I manually patch server.rb with "require 'openssl'" in the very top it goes away
I'm using ruby-1.9.3-p125 (w/ rvm). apnmachine is running with 'bundle exec' in daemon mode.
Please, give me a hint
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.