Skip to content

Releases: wjiuxing/WJXEventSource

Release list

0.0.2

Choose a tag to compare

@wjiuxing wjiuxing released this 12 May 05:41

What's New

Features

  • Swift Package Manager (SPM) support with zero file moves
  • AI agent skill (SKILL.md) for AI-assisted development — 3-file tiered structure for minimal token consumption
  • Exponential backoff retry strategy with configurable maxRetryCount
  • Content-Type validation: reject non-text/event-stream responses
  • Thread-safe listener management with concurrent GCD queue

Documentation

  • Comprehensive bilingual README (English + Chinese) with full API reference
  • AI agent skill split into SKILL.md (core API), ADVANCED.md (code examples), REFERENCE.md (gotchas & troubleshooting)

Tests

  • 10 XCTest cases for SSE event parsing (field extraction, multi-line data, reconnection)

Fixes

  • Default retryInterval set to 3.0 seconds

0.0.1

Choose a tag to compare

@wjiuxing wjiuxing released this 20 Apr 08:41

Initial release of WJXEventSource — HTML5 Server-Sent Events client for iOS.

Features:

  • HTML5 SSE protocol compliance (id, event, data, retry fields)
  • Event-listener pattern with addListener:forEvent:queue:
  • Automatic reconnection with exponential backoff
  • Thread-safe listener management
  • Content-Type validation
  • CocoaPods integration (iOS 10.0+, ARC)