lib/apnserver/client.rb in bpoweski-apnserver-0.0.17 vs lib/apnserver/client.rb in bpoweski-apnserver-0.1.2

- old
+ new

@@ -29,10 +29,10 @@ @ssl.close @sock.close end def write(notification) - puts "[#{host}:#{port}] Device: #{notification.device_token.unpack('H*')} sending #{notification.json_payload}" + puts "#{Time.now} [#{host}:#{port}] Device: #{notification.device_token.unpack('H*')} sending #{notification.json_payload}" @ssl.write(notification.to_bytes) end def connected? @ssl \ No newline at end of file