Skip to content

Commit 9accde1

Browse files
Fix comments (#147)
1 parent d2db0a5 commit 9accde1

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

ts/streaming/streaming/streamIn.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
import { api } from "encore.dev/api";
22

3-
// The Handshake object can be used to pass initial data, it's optional.
3+
// Used to pass initial data.
44
interface UploadHandshake {
55
user: string;
66
}
77

8-
// The Request object is what the clients sends over the stream.
8+
// What the clients sends over the stream.
99
interface DataChunk {
1010
data: string;
1111
done: boolean;
1212
}
1313

14-
// The Response object gets returned when the stream is done.
14+
// Returned when the stream is done.
1515
interface StreamEndResponse {
1616
success: boolean;
1717
}

ts/streaming/streaming/streamOut.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import { api, StreamOut } from "encore.dev/api";
22

3-
// The Handshake object can be used to pass initial data, it's optional.
3+
// Used to pass initial data.
44
interface LogHandshake {
55
rows: number;
66
}
77

8+
// What the server sends over the stream.
89
interface LogMessage {
910
message: string;
1011
}

0 commit comments

Comments
 (0)