Method: ApnServer::Server#initialize
- Defined in:
- lib/apnserver/server.rb
#initialize(pem, bind_address = '0.0.0.0', port = 22195) ⇒ Server
Returns a new instance of Server.
6 7 8 9 10 |
# File 'lib/apnserver/server.rb', line 6 def initialize(pem, bind_address = '0.0.0.0', port = 22195) @queue = EM::Queue.new @client = ApnServer::Client.new(pem) @bind_address, @port = bind_address, port end |