Protocol messages
This document gives further details on the client-server protocol messages. The stream client-server protocol messages are $ exttt $, $ exttt $, $ exttt $, $
This document gives further details on the client-server protocol messages.
The stream client-server protocol messages are , , , , and .
-
The message is sent from the stream client to the stream server in order to request for a stream to be sent.
If the stream client wants to receive all the stream file, a message is sent with an .
If the stream client knows the entry number at which the stream should start, it sends a message with that particular entry number. That is, .
-
message is the type of message the stream client can send if the stream client does not know the entry number, but knows something more meaningful to the application, like a bookmark.
In the case of the Polygon zkEVM, if the stream client wants to receive information from a certain L2 block number, then it provides the appropriate bookmark by sending a message.
Such a bookmark is actually a codification of the L2 block number.
-
message is a message the stream client can send to the stream server if it wants to stop receiving the stream.
-
message can be sent if the stream client requests just the header of a particular entry.
We discuss the information an entry contains, in more detail, later in this document.
In summary, an entry has two parts: a part called a , and a part called the .
So, a message is used to request for just the header, but not the full data of an entry.
It's like asking for only the block header and not the entire L2 block, in the Polygon zkEVM case.
-
message can be sent by the stream client in order to request for a specific entry in the stream file. Thus, instead of requesting the stream server to start streaming from a particular entry onwards, only one entry is obtained by sending an message.
-
message is a message in which a stream client sends a bookmark to the stream server, and the stream server in turn tells the stream client what entry number is linked to the bookmark.
The above six messages are all messages used in the client-server protocol. And they can be found here.
Last updated on
Bookmarks
This document describes what bookmarks are, and how they are used in client-server protocol. A stream is a sequence of entries, where these entries belong to so
Server-source library
Interaction between the stream source and each stream server is enabled by the library, which is a Go library with six main functions for modifying or adding en