Skip to content

Commit

Permalink
add more docs to control flags
Browse files Browse the repository at this point in the history
  • Loading branch information
jackyzha0 committed Nov 15, 2023
1 parent c9606c1 commit 2aad254
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions transport/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import { nanoid } from 'nanoid';

/**
* Control flags for transport messages.
* An RPC message is coded with StreamOpenBit | StreamClosedBit.
* Streams are expected to start with StreamOpenBit sent and the client SHOULD send an empty
* message with StreamClosedBit to close the stream handler on the server, indicating that
* it will not be using the stream anymore.
*/
export const enum ControlFlags {
AckBit = 0b0001,
Expand Down

0 comments on commit 2aad254

Please sign in to comment.