We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d6770d commit c8f09f4Copy full SHA for c8f09f4
src/participant/streamParsing.ts
@@ -74,6 +74,13 @@ class StreamingKMP {
74
}
75
76
77
+// This class is essentially a state machine that processes a stream of text fragments
78
+// and emitting a callback with the content between each start and end identifier. The
79
+// two states we have are:
80
+// 1. "waiting for start identifier" - `_matchedContent === undefined`
81
+// 2. "waiting for end identifier" - `_matchedContent !== undefined`
82
+// with the state transitioning from one to the other when the corresponding identifier
83
+// is matched in the fragment stream.
84
class FragmentMatcher {
85
private _startMatcher: StreamingKMP;
86
private _endMatcher: StreamingKMP;
0 commit comments