Swiftpack.co - fizker/swift-server-sent-event-models as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by fizker.
fizker/swift-server-sent-event-models 0.0.1
Swift data models for Server-sent events
⭐️ 0
🕓 1 year ago
linux macOS iOS
.package(url: "https://github.com/fizker/swift-server-sent-event-models.git", from: "0.0.1")


Models representing the data-layer for Server-sent events.

The models are strongly typed, but have some escape-hatches in case that non-specced data is needed.

DocC code documentation.

How to install

  1. Add the package to your dependencies in Package.swift: .package(url: "https://github.com/fizker/swift-server-sent-event-models.git", from: "0.0.1"),.
  2. Add the dependency to all targets that need it: .product(name: "ServerSentEventModels", package: "swift-server-sent-event-models"),.
  3. Import the module in your code: import ServerSentEventModels.

For an example, see the Package.swift and the routes.swift from the demo project for an example.

How to use

For detailed examples on how to use the package, see the DocC docs.


Stars: 0
Last commit: 5 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics