Swiftpack.co -  shtrihstr/EventHub as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
iOS client-side library for EventHub written in Swift
.package(url: "https://github.com/shtrihstr/EventHub.git", from: "0.1.0")

Swift EventHub Client

iOS client-side library for EventHub written in Swift.


  • Keeps connection only if an active subscription exists
  • Automatic reconnect and resubscribe
  • Concurrent subscriptions to one topic


import EventHub
import Combine

let client = EventHub(url: URL(string: "ws://myeventhubserver.com")!, token: "myAuthToken")

let cancellable = client.subscribe(topic: "foo/bar")
   .receive(on: RunLoop.main)
   .sink(receiveValue: { response in


iOS 13+


Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler. Once you have your Swift package set up, adding EventHub as a dependency is as easy as adding it to the dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/shtrihstr/EventHub.git", .upToNextMajor(from: "0.1.0"))


Stars: 1
Last commit: 2 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

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