Skip to main content

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

NameType
resResponse<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

NameType
paramsStreamParams

Returns

Promise<string>

Defined in

packages/mongodb-chatbot-server/src/services/dataStreamer.ts:110


streamData

streamData(data): void

Parameters

NameType
dataSomeStreamEvent

Returns

void

Defined in

packages/mongodb-chatbot-server/src/services/dataStreamer.ts:109