Wendy, Mingmingand Yichen, Please see below.
Regards, Kai On 07/07/16 23:21, Mingming Chen wrote: > Hi Wendy, > Yichen and I are reviewing SSE, here are something uncertain for us > and we want to discuss. > (1) In 2. Overview of Approach part, page 6, " The server responds by > sending an event with the URI of a stream-control resource for this > update stream. The client uses the control URI to select the resources > for which it wants updates". We are not sure what's the meaning of " > The client uses the control URI to select the resources for which it > wants updates". Do you mean the "add" control ( location 3. Changes > Since Version -01,page 6, "Defined a new 'Stream Control' resource to > allow clients to add or remove resources from a previously created > Update Stream")? See section 9.2, page 23, the example of the response. The "URI" refers to value of the "control-uri", which is "http://alto.example.com/updates/streams/2718281828459". The ALTO client can send commands to that URI to control the update stream, for example, the example on page 24. You can tell the difference between an update stream and a stream control from the Content-type of the two examples, where the update stream service (page 23) uses text/event-stream while stream control service (page 24) uses text/plain. p.s. Wendy, I can't help noticing that there is a huge blank on page 22, which is sufficient to hold the example request from page 23. Maybe the request and response can be put in different artworks? > In 9.2 Example: Advanced Network and Cost Map Updates, page 24, there > is a good example of updates. But we didn't find an example of clients > using the stream control URI to execute "add" control but just "remove". > (2) In 4. Overview of Server-Sent Events (SSEs), page 7, "Messages are > delimited by two new-lines (this is a slight simplification: see [SSE] > for details)." But in the following, "The protocol defines three field > names: event, id, and data". The example in Figure 1 also illustrate > the three field names. So the question is, what is the "two new-lines" > refer to? > Look forward to your reply! Thank you so much! Still the example on page 23 (Not sure if I understand it correctly, Wendy please feel free to correct me). event: =application/alto-updatestreamcontrol+json data: {"control-uri": data: "http://alto.example.com/updates/streams/2718281828459"}// <- the first new line // <- the second newline event: application/alto-costmap+json,routing data: { ... full routingcost Cost Map message ... } > > > Best Regards, > Mingming, Yichen > > > > > > > _______________________________________________ > alto mailing list > [email protected] > https://www.ietf.org/mailman/listinfo/alto
_______________________________________________ alto mailing list [email protected] https://www.ietf.org/mailman/listinfo/alto
