Skip to content

Commit e175f4d

Browse files
committed
docs: send multiple messages per frame
1 parent b0472bb commit e175f4d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs-src/src/components/ChatDemo.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,12 @@ export default {
104104
},
105105
106106
addMessage () {
107-
this.items.push({
108-
id: id++,
109-
...messages[id % 10000],
110-
})
107+
for (let i = 0; i < 10; i++) {
108+
this.items.push({
109+
id: id++,
110+
...messages[id % 10000],
111+
})
112+
}
111113
this.scrollToBottom()
112114
113115
if (this.streaming) {

0 commit comments

Comments
 (0)