Skip to content

Commit

Permalink
docs(spec): add SessionId field to ChannelPreamble
Browse files Browse the repository at this point in the history
  • Loading branch information
aqrln committed Oct 24, 2017
1 parent d35539c commit 2a30445
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/protocol.rst
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,8 @@ Types`_).
+-----------------------------+------+
| ``MessagePreambleReserved`` | 16 |
+-----------------------------+------+
| ``SessionId`` | 64 |
+-----------------------------+------+

``Id`` field is an identifier of the channel in the connection. To avoid
collisions because of unsynchronized channel counters on the sides of a
Expand All @@ -322,6 +324,9 @@ following values:

__ `Data Chunk`_

``SessionId`` is an identifier of the session to open a channel in. It is
obtained during application handshake as a part of ``HandshakeResponse``.

If ``ChunkType`` is ``MESSAGE_PREAMBLE``, then the chunk is a `Message Preamble`_.

Message Preamble
Expand All @@ -342,6 +347,8 @@ See `Channel Preamble`_.
+-----------------------------+------+
| ``MessageType`` | 8 |
+-----------------------------+------+
| ``SessionId`` | 64 |
+-----------------------------+------+

This chunk type extends the generic `Channel Preamble`_, adding two new fields
instead of the ``MessagePreambleReserved`` field, namely, ``Encoding`` and
Expand Down

0 comments on commit 2a30445

Please sign in to comment.