import { writeAll } from '@std/io'; import type { Transport } from '@rocket.chat/apps/base-runtime/lib/messenger'; /** * Transport that writes messages to the process' standard output. * * This is the transport used when the runtime is executed as a subprocess by * the Apps-Engine framework, and it is specific to platforms that expose a * Node-compatible `process.stdout`. */ export const stdoutTransport: Transport = { send(message: Uint8Array): Promise { return writeAll(Deno.stdout, message); }, };