Modal logo
GuideExamples
Reference
Releases
Playground
Log In Sign Up
JavaScript SDK Reference App CloudBucketMount Cls ClsInstance ContainerProcess Errors FileInfo FileType FileWatchEvent FileWatchEventType Function FunctionAutoscalerSettings FunctionCall FunctionStats Image LogEntry Logger LogLevel LogSource ModalClient ModalReadStream ModalWriteStream Probe Profile Proxy Queue Retries Sandbox SandboxCreateConnectCredentials SandboxSnapshot Secret SidecarContainer StdioBehavior StreamMode Tunnel Volume

StreamMode

Specifies the type of data that will be read from the Sandbox or container process. "text" means the data will be read as UTF-8 text, while "binary" means the data will be read as raw bytes (Uint8Array).

type StreamMode = "text" | "binary";
StreamMode
Modal logo Modal logo © Modal 2026
About Status Releases Documentation Slack Community Pricing Examples