Re: WGLC of draft-ietf-xmpp-websocket-02

Gordin <[email protected]>
Newsgroups gmane.ietf.xmpp
Message-ID <CAFp5o_+sy6X5JTS-kg0iSYJU4R1J7EPLSM5hyrttPCZUiP2JLg@mail.gmail.com>
I implemented all of the websocket drafts for Strophe.js and found
most of it straightforward, but I have a few minor clarifications to
add for "3.4.  Stream Initiation" (in the -03 version).

It reads
"The first message sent by the initiating entity after the WebSocket
opening handshake is complete MUST be an <open/> element qualified by
the "urn:ietf:params:xml:ns:xmpp-framing" namespace. The 'from', 'id',
'to', and 'version' attributes of this element mirror those of the
XMPP opening stream tag as defined for the
'http://etherx.jabber.org/streams' namespace in XMPP [RFC6120]."

The first sentence could be rearrenged to
"The first message sent after the WebSocket opening handshake is
complete MUST be an <open/> element qualified by the
"urn:ietf:params:xml:ns:xmpp-framing" namespace by the initiating
entity."
to emphasize that the initiating entity has to send the first message
after the handshake.
More important though, "The 'from', 'id', 'to', and 'version'
attributes of this element …" suggests that the the initiating entity
should include an 'id' attribute in the <open/> element, which is a
MUST NOT in RFC6120 as this 'id' "MUST be generated by the receiving
entity" and "the initiating entity MUST NOT include the 'id'
attribute" as stated in
http://tools.ietf.org/html/rfc6120#section-4.7.3 . It would be nice if
there was an example and a reference to RFC6120, section 4.7.3 to make
it clear that the 'id' attribute should only be present in the
response of the receiving entity. Something like:

   C: <open xmlns="urn:ietf:params:xml:ns:xmpp-framing"
            to="example.com"
            version="1.0" />
   S: <open xmlns="urn:ietf:params:xml:ns:xmpp-framing"
            id='++TR84Sm6A3hnt3Q065SnAbbk3Y='
            to="example.com"
            version="1.0" />

-- Gordin

2014-04-07 23:29 GMT+02:00 Ben Campbell <[email protected]>:
> This is a Working Group Last Call of draft-ietf-xmpp-websocket-02. The draft is available at the following URL:
>
> http://tools.ietf.org/html/draft-ietf-xmpp-websocket-02
>
> The WGLC will conclude on 21 April, 2014. Please send your comments to the authors and the XMPP mailing list.
>
> Thanks!
>
> Ben.
>
> _______________________________________________
> xmpp mailing list
> [email protected]
> https://www.ietf.org/mailman/listinfo/xmpp

_______________________________________________
xmpp mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/xmpp
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.