Skip to content

createExpoBinaryTransport — @gj-kit/expo-media

A public function from @gj-kit/expo-media. The signature below is taken directly from the 0.6.1 release declaration.

import { createExpoBinaryTransport } from '@gj-kit/expo-media';
/**
* `BinaryTransport`의 기본 구현 — 전역 `fetch` 기반 PUT.
*
* ⚠ `"./web"`의 `createFetchBinaryTransport`와 **역할이 다르다.** 저쪽은 `fetch`를 주입받는
* DOM 엔트리의 구현이고, 이쪽은 골든패스가 아무 조립 없이도 동작하게 하는 기본값이다.
* peer는 늘지 않는다 — RN도 브라우저도 fetch를 전역으로 갖는다.
*
* ⚠ **로컬 파일 업로드에는 쓰지 않는다.** 바이트를 JS 힙으로 올리는 순간 §7 하드닝 1이
* 지키려던 것(대용량 파일의 네이티브 스트리밍)이 사라진다. 로컬 URI의 정본은
* `createExpoLocalFileTransport`뿐이고, 이 전송은 이미 메모리에 있는 바이너리
* (웹 Blob·포스터 프레임)만 다룬다.
*/
declare function createExpoBinaryTransport(): BinaryTransport;

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/expo-media
  • Version: 0.6.1
  • Public entry: .
  • Source: GitHub