Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require 'json'
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))

Pod::Spec.new do |s|
s.name = 'CapacitorStreamHttp'
s.name = 'CapacitorStreamHttpV2'
s.version = package['version']
s.summary = package['description']
s.license = package['license']
Expand Down
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
import PackageDescription

let package = Package(
name: "CapacitorStreamHttp",
name: "CapacitorStreamHttpV2",
platforms: [.iOS(.v13)],
products: [
.library(
name: "CapacitorStreamHttp",
name: "CapacitorStreamHttpV2",
targets: ["StreamHttpPlugin"])
],
dependencies: [
Expand Down
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# capacitor-stream-http
# capacitor-stream-http-v2

Package updated for Capacitor 8. This is only a updated fork of https://github.com/chatboxai/capacitor-stream-http

Capacitor plugin for native HTTP streaming support on iOS and Android. This plugin enables true streaming of HTTP responses, particularly useful for Server-Sent Events (SSE) and other streaming APIs.

Expand All @@ -14,7 +16,7 @@ Capacitor plugin for native HTTP streaming support on iOS and Android. This plug
## Install

```bash
npm install capacitor-stream-http
npm install capacitor-stream-http-v2
npx cap sync
```

Expand All @@ -23,7 +25,7 @@ npx cap sync
### Basic Usage

```typescript
import { StreamHttp } from 'capacitor-stream-http';
import { StreamHttp } from 'capacitor-stream-http-v2';

// Listen for chunks
await StreamHttp.addListener('chunk', (data) => {
Expand Down Expand Up @@ -58,7 +60,7 @@ await StreamHttp.cancelStream({ id });
### Using with ReadableStream API

```typescript
import { createNativeReadableStream } from 'capacitor-stream-http';
import { createNativeReadableStream } from 'capacitor-stream-http-v2';

const stream = createNativeReadableStream({
url: 'https://api.example.com/stream',
Expand Down Expand Up @@ -135,4 +137,4 @@ Cancels an active stream.

## License

MIT
MIT
Loading