mirror of
https://github.com/silvanshade/tower-lsp-web-demo.git
synced 2025-02-02 08:53:33 +00:00
Add a note about framed reads
This commit is contained in:
parent
20fb05c086
commit
caf08cde97
1 changed files with 1 additions and 0 deletions
|
@ -128,6 +128,7 @@ export class StreamDemuxer extends Queue<Uint8Array> {
|
||||||
this.#start = this.start();
|
this.#start = this.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME: we needs to actually do framed reads here since `bytes` may not be a complete message
|
||||||
private async start(): Promise<void> {
|
private async start(): Promise<void> {
|
||||||
for await (const bytes of this) {
|
for await (const bytes of this) {
|
||||||
const delimited = Bytes.decode(bytes);
|
const delimited = Bytes.decode(bytes);
|
||||||
|
|
Loading…
Reference in a new issue