Capacitor plugin for native HTTP streaming on iOS and Android, version 0.1.0. Enables true chunk-by-chunk streaming for Server-Sent Events (SSE) and other streaming APIs, with support for custom headers, request body, and cancellation. Differentiates from standard fetch by leveraging native URLSession (iOS) and HttpURLConnection (Android) for efficient streaming that works behind proxy configurations on mobile devices. Does not support web platform; falls back to fetch API. Maintained by chatbox, licensed MIT.
npm install capacitor-stream-httpVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to listen for chunk events, start a GET stream, and cancel it after 5 seconds.
Check if running on native platform before using this plugin, or fall back to fetch/ReadableStream for web.
N/A
Always destructure { id } from the result.Store listener references and call removeAllListeners or removeListener when done.
Use feature detection: if (Capacitor.getPlatform() !== 'web') { /* use plugin */ } else { /* fallback to fetch */ }Change to: import { StreamHttp } from 'capacitor-stream-http'