receive

actual fun receive(): Flow<LiveServerMessage>(source)

Receives responses from the model for both streaming and standard requests.

Call close to stop receiving responses from the model.

Return

A Flow which will emit LiveServerMessage from the model.

See also

Throws

when the session is already receiving.

expect fun receive(): Flow<LiveServerMessage>(source)

Receives responses from the model for both streaming and standard requests.

Call close to stop receiving responses from the model.

Return

A Flow which will emit LiveServerMessage from the model.

See also

Throws

when the session is already receiving.

actual fun receive(): Flow<LiveServerMessage>(source)

Receives responses from the model for both streaming and standard requests.

Call close to stop receiving responses from the model.

Return

A Flow which will emit LiveServerMessage from the model.

See also

Throws

when the session is already receiving.