W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2011

[Bug 12912] New: Close status code is an unsigned short

From: <bugzilla@jessica.w3.org>
Date: Wed, 08 Jun 2011 17:17:21 +0000
To: public-webapps@w3.org
Message-ID: <bug-12912-2927@http.www.w3.org/Bugs/Public/>

           Summary: Close status code is an unsigned short
           Product: WebAppsWG
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebSocket API (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: adrianba@microsoft.com
         QAContact: member-webapi-cvs@w3.org
                CC: mike@w3.org, public-webapps@w3.org

The code argument to the close() method [1] should be an unsigned short to
match the protocol spec [2]. This should also be reflected in the CloseEvent

The protocol document says:

      If there is a body, the first two bytes of the body
      MUST be a 2-byte integer (in network byte order)
      representing a status code defined in Section 7.4.

[1] http://dev.w3.org/html5/websockets/#the-websocket-interface
[3] http://dev.w3.org/html5/websockets/#closeevent

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Wednesday, 8 June 2011 17:17:27 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:20 UTC