Provides types and utilities for the NATS protocol
A NATS message
Information sent by the server immediately after opening the connection
Options for the CONNECT operation
Parse an operation (generally received from the server) from a string
Any message contained will be of type 'String'
Parse an operation from binary data.
Any message contained will be of type 'Bytes'
serialize an Operation (generally for sending to the server)
if the operation contains data as bytes, the result string will be base64 encoded
The result of parsing an operation
A temporary state when a parsing an operation is incomplete
Returns a initial ParseState
Typed operations of the NATS protocol
Here is the protocol documentation: