Skip to content

Commit 39d7543

Browse files
committed
Readme: add signal to the demo.
1 parent 6551ed1 commit 39d7543

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1372,7 +1372,7 @@ const subscriptionEndpoint = new EventStreamFactory({
13721372
time: z.int().positive(),
13731373
}).buildVoid({
13741374
input: z.object({}), // optional input schema
1375-
handler: async ({ options: { emit, isClosed } }) => {
1375+
handler: async ({ options: { emit, isClosed, signal } }) => {
13761376
while (!isClosed()) {
13771377
emit("time", Date.now());
13781378
await setTimeout(1000);

0 commit comments

Comments
 (0)