Skip to content

Commit e2c2ba4

Browse files
committed
example: update timeout and limit to prevent possible timeouts on demo app
1 parent 15dc386 commit e2c2ba4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

projects/sample-app/src/app/app.component.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,16 @@ export class AppComponent implements AfterViewInit {
5656

5757
return body.token;
5858
}
59-
: environment.userToken
59+
: environment.userToken,
60+
{ timeout: 10000 }
6061
);
6162
void this.channelService.init(
6263
environment.channelsFilter || {
6364
type: 'messaging',
6465
members: { $in: [environment.userId] },
65-
}
66+
},
67+
undefined,
68+
{ limit: 10 }
6669
);
6770
this.streamI18nService.setTranslation();
6871
this.channelService.activeParentMessage$

0 commit comments

Comments
 (0)