On Tue, Dec 2, 2014 at 8:40 AM, Daniel Bevenius <daniel.bevenius@gmail.com> wrote:
>Not sure I get why that is not created on default. When I am not doing the create-channel, an 'application' (e.g. curl or UPS) has no location to send a >payload for the device, right?
My understanding is that the device registers not the application, which for example could be a web browser/user agent.

right and the URI, returned to the 'user agent' can be stored on your 'application', like UPS.

I wonder why I (being a device/user-agent) explicitly have to create that channel. 

 
It will then create channels for potentially multiple applications.

ok, I see that a few extra 'creates' are needed, for multiple channels. But what's the use case of a register without creating a channel? Just simply to monitor on an existing or different channel ?
 
In the case of usage with the Push-API, a service worker would handle the interaction with the WebPush server and hand out channels to applications. It would also be responsible for handling the inbound notifications, and can take different actions depending on the state of the webapp (post it to an open window, store it, show notification).

>Can a device have multiple monitoring channels? (e.g. channels per topic, like #Rihanna #ZZtop #ACDC ? Can a device 'un monitor' ? 
I think that an application would create separate channels for topic it requires. 
Not sure about unmonitoring. I've not see anything about that (unless I completely missed it)

Not sure, but I think it might be useful to have an unmonitor, to quite the abo of some content, e.g. at some point  #Rihanna might get boring :-) 
Well, sue I can still 'ignore' it in my code of the service-worker, but would be nice if that guy was no longer bothered :) 

Or am I having a misunderstanding of the concept here ? 


 





On 1 December 2014 at 17:49, Matthias Wessendorf <matzew@apache.org> wrote:
Hi,

after performing register, I get URIs for my channel/monitor, like:


register
 [streamid:3] ChannelLink: webpush/7df2add5-ec4b-42a2-805f-5f8fcf8faa96/channel, MonitorLink: webpush/7df2add5-ec4b-42a2-805f-5f8fcf8faa96/monitor


I wonder why I do have to explictly create the channel?
create-channel webpush/7df2add5-ec4b-42a2-805f-5f8fcf8faa96/channel

Not sure I get why that is not created on default. When I am not doing the create-channel, an 'application' (e.g. curl or UPS) has no location to send a paylload for the device, right?

 

Can a device have multiple monitoring channels? (e.g. channels per topic, like #Rihanna #ZZtop #ACDC ? Can a device 'un monitor' ? 


Thanks :-)  


--

_______________________________________________
aerogear-dev mailing list
aerogear-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev


_______________________________________________
aerogear-dev mailing list
aerogear-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev



--