Interface: DataStreamer
Service that streams data to the client.
Properties
connected
• connected: boolean
Defined in
packages/mongodb-chatbot-server/src/services/dataStreamer.ts:106
Methods
connect
▸ connect(res
): void
Parameters
Name | Type |
---|---|
res | Response <any , Record <string , any >> |
Returns
void
Defined in
packages/mongodb-chatbot-server/src/services/dataStreamer.ts:107
disconnect
▸ disconnect(): void
Returns
void
Defined in
packages/mongodb-chatbot-server/src/services/dataStreamer.ts:108
stream
▸ stream(params
): Promise
<string
>
Parameters
Name | Type |
---|---|
params | StreamParams |
Returns
Promise
<string
>
Defined in
packages/mongodb-chatbot-server/src/services/dataStreamer.ts:110
streamData
▸ streamData(data
): void
Parameters
Name | Type |
---|---|
data | SomeStreamEvent |
Returns
void
Defined in
packages/mongodb-chatbot-server/src/services/dataStreamer.ts:109