|
1 | | -npm <!doctype html> |
| 1 | +<!doctype html> |
2 | 2 | <html lang="en-US"> |
3 | 3 | <head> |
4 | 4 | <link href="/assets/index.css" rel="stylesheet" type="text/css" /> |
|
70 | 70 | const firstTypingActivityId = 't-00001'; |
71 | 71 |
|
72 | 72 | await directLine.emulateIncomingActivity({ |
73 | | - entities: [{ streamSequence: 1, streamType: 'streaming', type: 'streaminfo', streamId: 'a-entities' }], |
| 73 | + entities: [{ streamSequence: 1, streamType: 'streaming', type: 'streaminfo' }], |
74 | 74 | from: { id: 'u-00001', name: 'Bot', role: 'bot' }, |
75 | 75 | id: firstTypingActivityId, |
76 | 76 | text: 'A quick', |
|
100 | 100 |
|
101 | 101 | // WHEN: Bot continue typing the message. |
102 | 102 | await directLine.emulateIncomingActivity({ |
103 | | - entities: [{ streamId: 'a-entities', streamSequence: 2, type: 'streaminfo', streamType: 'streaming' }], |
| 103 | + entities: [{ streamId: firstTypingActivityId, streamSequence: 2, type: 'streaminfo', streamType: 'streaming' }], |
104 | 104 | from: { id: 'u-00001', name: 'Bot', role: 'bot' }, |
105 | 105 | id: 't-00002', |
106 | 106 | text: 'A quick brown fox', |
|
128 | 128 |
|
129 | 129 | // WHEN: Bot continue typing the message. |
130 | 130 | await directLine.emulateIncomingActivity({ |
131 | | - entities: [{ streamId: 'a-entities', streamSequence: 3, type: 'streaminfo', streamType: 'streaming' }], |
| 131 | + entities: [{ streamId: firstTypingActivityId, streamSequence: 3, type: 'streaminfo', streamType: 'streaming' }], |
132 | 132 | from: { id: 'u-00001', name: 'Bot', role: 'bot' }, |
133 | 133 | id: 't-00003', |
134 | 134 | text: 'A quick brown fox jumped over', |
|
153 | 153 |
|
154 | 154 | // WHEN: Bot finished typing the message. |
155 | 155 | await directLine.emulateIncomingActivity({ |
156 | | - entities: [{ streamId: 'a-entities', type: 'streaminfo', streamType: 'final' }], |
| 156 | + entities: [{ streamId: firstTypingActivityId, type: 'streaminfo', streamType: 'final' }], |
157 | 157 | from: { id: 'u-00001', name: 'Bot', role: 'bot' }, |
158 | 158 | id: 'a-00002', |
159 | 159 | text: 'A quick brown fox jumped over the lazy dogs.', |
|
0 commit comments