Interface: DataStreamer
ragCore.DataStreamer
Service that streams data to the client.
Properties
connected
• connected: boolean
Defined in
mongodb-rag-core/build/DataStreamer.d.ts:67
Methods
connect
▸ connect(res
): void
Parameters
Name | Type |
---|---|
res | Response <any , Record <string , any >> |
Returns
void
Defined in
mongodb-rag-core/build/DataStreamer.d.ts:68
disconnect
▸ disconnect(): void
Returns
void
Defined in
mongodb-rag-core/build/DataStreamer.d.ts:69
stream
▸ stream(params
): Promise
<string
>
Parameters
Name | Type |
---|---|
params | StreamParams |
Returns
Promise
<string
>
Defined in
mongodb-rag-core/build/DataStreamer.d.ts:71
streamData
▸ streamData(data
): void
Parameters
Name | Type |
---|---|
data | SomeStreamEvent |
Returns
void
Defined in
mongodb-rag-core/build/DataStreamer.d.ts:70