Skip to content

bodhi-realtime-agent / SessionClientSender

Interface: SessionClientSender

Defined in: types/session-client.ts:7

Contract for sending data to one client. The server owns the socket and implements this; VoiceSession sends audio and JSON through it. Input is fed via feedAudioFromClient / feedJsonFromClient.

Methods

sendAudio()

sendAudio(data): void

Defined in: types/session-client.ts:8

Parameters

data

Buffer

Returns

void


sendJson()

sendJson(message): void

Defined in: types/session-client.ts:9

Parameters

message

Record<string, unknown>

Returns

void

Built with VitePress