Skip to content

pb_client.service.Service.write_stdin async

write_stdin(data, *, hub_id=None)

Send input to whatever is running on a hub.

Returns once the hub has taken every byte. That can mean waiting: a hub whose input buffer is full refuses a write rather than keeping part of it, and the service waits for the program to read rather than dropping what it was given.

Parameters:

Name Type Description Default
data bytes

The bytes to send, exactly as they should arrive.

required
hub_id str | None

Which hub, or None for the current one.

None