lib/zero_push.rb in zero_push-2.1.0 vs lib/zero_push.rb in zero_push-2.2.0
- old
+ new
@@ -16,9 +16,17 @@
def broadcast(params)
client.broadcast(params)
end
+ def subscribe(device_token, channel)
+ client.subscribe(device_token, channel)
+ end
+
+ def unsubscribe(device_token, channel)
+ client.unsubscribe(device_token, channel)
+ end
+
def register(device_token)
client.register(device_token)
end
def set_badge(device_token, badge)