WebSocket2 over HTTP/2
draft-svirid-websocket2-over-http2-00

Document Type Active Internet-Draft (individual)
Last updated 2016-10-18
Stream (None)
Intended RFC status (None)
Formats plain text pdf html bibtex
Stream Stream state (No stream defined)
Consensus Boilerplate Unknown
RFC Editor Note (None)
IESG IESG state I-D Exists
Telechat date
Responsible AD (None)
Send notices to (None)
Network Working Group                                          I. Svirid
Internet-Draft                                          October 18, 2016
Intended status: Informational
Expires: April 21, 2017

                         WebSocket2 over HTTP/2
                 draft-svirid-websocket2-over-http2-00

Abstract

   This document specifies a new protocol called WebSocket2 ontop of
   HTTP/2.  The WebSocket2 protocol enables two-way binary communication
   between a client running untrusted code in a controlled environment
   to a remote host that has opted-in to communications from that code.

   This protocol has little incommon with the WebSocket protocol
   [RFC6455] other than client side API compatibility.

   Please send feedback to the ietf-http-wg@w3.org mailing list.

Status of This Memo

   This Internet-Draft is submitted in full conformance with the
   provisions of BCP 78 and BCP 79.

   Internet-Drafts are working documents of the Internet Engineering
   Task Force (IETF).  Note that other groups may also distribute
   working documents as Internet-Drafts.  The list of current Internet-
   Drafts is at http://datatracker.ietf.org/drafts/current/.

   Internet-Drafts are draft documents valid for a maximum of six months
   and may be updated, replaced, or obsoleted by other documents at any
   time.  It is inappropriate to use Internet-Drafts as reference
   material or to cite them other than as "work in progress."

   This Internet-Draft will expire on April 21, 2017.

Copyright Notice

   Copyright (c) 2016 IETF Trust and the persons identified as the
   document authors.  All rights reserved.

   This document is subject to BCP 78 and the IETF Trust's Legal
   Provisions Relating to IETF Documents
   (http://trustee.ietf.org/license-info) in effect on the date of
   publication of this document.  Please review these documents
   carefully, as they describe your rights and restrictions with respect

Svirid                   Expires April 21, 2017                 [Page 1]
Internet-Draft           WebSocket2 over HTTP/2             October 2016

   to this document.  Code Components extracted from this document must
   include Simplified BSD License text as described in Section 4.e of
   the Trust Legal Provisions and are provided without warranty as
   described in the Simplified BSD License.

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   2
     1.1.  Conventions and Terminology . . . . . . . . . . . . . . .   3
   2.  Overview  . . . . . . . . . . . . . . . . . . . . . . . . . .   3
     2.1.  WebSocket2 Protocol . . . . . . . . . . . . . . . . . . .   3
   3.  Handshake . . . . . . . . . . . . . . . . . . . . . . . . . .   3
     3.1.  Client Handshake Request  . . . . . . . . . . . . . . . .   3
     3.2.  Server Handshake Reply  . . . . . . . . . . . . . . . . .   4
       3.2.1.  Handshake Error Reasons . . . . . . . . . . . . . . .   5
     3.3.  Post Handshake  . . . . . . . . . . . . . . . . . . . . .   5
   4.  Data Framing  . . . . . . . . . . . . . . . . . . . . . . . .   5
     4.1.  Text Frame  . . . . . . . . . . . . . . . . . . . . . . .   6
     4.2.  Binary Frame  . . . . . . . . . . . . . . . . . . . . . .   6
     4.3.  Error Frame . . . . . . . . . . . . . . . . . . . . . . .   6
       4.3.1.  Error Frame Codes . . . . . . . . . . . . . . . . . .   7
   5.  VarSize . . . . . . . . . . . . . . . . . . . . . . . . . . .   8
   6.  Compression . . . . . . . . . . . . . . . . . . . . . . . . .   8
     6.1.  LZ4 Compressed Payload  . . . . . . . . . . . . . . . . .   8
     6.2.  Deflate Compressed Payload  . . . . . . . . . . . . . . .   8
   7.  References  . . . . . . . . . . . . . . . . . . . . . . . . .   9
     7.1.  Normative References  . . . . . . . . . . . . . . . . . .   9
     7.2.  Informative References  . . . . . . . . . . . . . . . . .   9
   Appendix A.  Acknowledgements . . . . . . . . . . . . . . . . . .   9
   Author's Address  . . . . . . . . . . . . . . . . . . . . . . . .   9

1.  Introduction

   You can read about why two way data streaming is important from the
   introduction to WebSockets in RFC6455 Section 1
   <https://tools.ietf.org/html/rfc6455#section-1>.

   WebSocket2 over HTTP/2 is a protocol ontop HTTP/2 designed for modern
   times.  Previous WebSocket client side API will be fully backward
   compatible with WebSocket2.

   In this document, we describe WebSocket2 and how to layer WebSocket2
   semantics onto HTTP/2 semantics by defining detailed mapping,
   replacement of operations and events.

Svirid                   Expires April 21, 2017                 [Page 2]
Internet-Draft           WebSocket2 over HTTP/2             October 2016

1.1.  Conventions and Terminology
Show full document text