Swiftpack.co - Swift Packages by centrifugal

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.

Packages published by centrifugal

centrifugal/centrifuge-swift 0.7.1
Swift client SDK for bidirectional real-time communication with Centrifugo and Centrifuge-based server over WebSocket
⭐️ 45
🕓 28 weeks ago
🔖 Release Notes

Releases

The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
0.7.1
28 weeks ago
## What's Changed * Document `URLSessionWebSocketTask` [in readme](https://github.com/centrifugal/centrifuge-swift#using-urlsessionwebsockettask) * fix: add `@unknown default` to URLSessionTask.State ext switch by @FZambia in https://github.com/centrifugal/centrifuge-swift/pull/97 **Full Changelog**: https://github.com/centrifugal/centrifuge-swift/compare/0.7.0...0.7.1
0.7.0
28 weeks ago
## What's Changed * Add alternative websocket implementation via URLSessionWebSocketTask by @antonselyanin in https://github.com/centrifugal/centrifuge-swift/pull/84 * Prevent memory leaks when passing token getters by @YoavGro in https://github.com/centrifugal/centrifuge-swift/pull/92 **Full Changelog**: https://github.com/centrifugal/centrifuge-swift/compare/0.6.1...0.7.0
0.6.1
41 weeks ago
## What's Changed * Make `info` field of `CentrifugePublicationEvent` and `CentrifugeServerPublicationEvent` public by @YoavGro in https://github.com/centrifugal/centrifuge-swift/pull/91 ## New Contributors * @YoavGro made their first contribution in https://github.com/centrifugal/centrifuge-swift/pull/91 **Full Changelog**: https://github.com/centrifugal/centrifuge-swift/compare/0.6.0...0.6.1
0.6.0
43 weeks ago
## What's Changed **Breaking change!** This release changes the semantics of working with connection tokens described in [Centrifugo v5 release post](https://centrifugal.dev/blog/2023/06/29/centrifugo-v5-released#token-behaviour-adjustments-in-sdks). Previously, returning an empty token string from `CentrifugeConnectionTokenGetter` callback resulted in client disconnection with unauthorized reason. Now returning an empty string from `CentrifugeConnectionTokenGetter` is a valid scenario which won't result into disconnect on the client side. It's still possible to disconnect client by returning a special `CentrifugeError.unauthorized` from `CentrifugeConnectionTokenGetter`. And we are putting back `SetToken` method to the SDK – so it's now possible to reset the token to be empty upon user logout. **Full Changelog**: https://github.com/centrifugal/centrifuge-swift/compare/0.5.5...0.6.0
0.5.5
1 year ago
## What's Changed * Improve logger API: replace String with StaticString by @antonselyanin in https://github.com/centrifugal/centrifuge-swift/pull/74 **Full Changelog**: https://github.com/centrifugal/centrifuge-swift/compare/0.5.4...0.5.5
0.5.4
1 year ago
## What's Changed * Add centrifuge logger interface by @antonselyanin in https://github.com/centrifugal/centrifuge-swift/pull/73 * Example app: replace CocoaPods with SPM by @antonselyanin in https://github.com/centrifugal/centrifuge-swift/pull/72 **Full Changelog**: https://github.com/centrifugal/centrifuge-swift/compare/0.5.3...0.5.4
0.5.3
1 year ago
* Fix: unset refreshRequired flag after getting connection token [commit](https://github.com/centrifugal/centrifuge-swift/commit/c41cea5f5b2b29051937a630a5677f86dd92a377)
0.5.2
1 year ago
* Fix connect when initial connection token not set but `tokenGetter` provided [#71](https://github.com/centrifugal/centrifuge-swift/pull/71)
v0.5.1
1 year ago
* Fix crashes caused by non-synchronized memory access upon getting `no ping` disconnect * Fix issuing duplicate `connecting` state change events
v0.5.0 - new SDK API
1 year ago
**Breaking changes** This release adopts a new iteration of Centrifugal protocol and a new iteration of API. Client now behaves according to the client [SDK API specification](https://centrifugal.dev/docs/transports/client_api). The work has been done according to [Centrifugo v4 roadmap](https://github.com/centrifugal/centrifugo/issues/500). Check out [Centrifugo v4 release post](https://centrifugal.dev/blog/2022/07/19/centrifugo-v4-released) that covers the reasoning behind changes here. New release only works with Centrifugo >= v4.0.0 and [Centrifuge](https://github.com/centrifugal/centrifuge) >= 0.25.0. See [Centrifugo v4 migration guide](https://centrifugal.dev/docs/getting-started/migration_v4) for details about the changes in the ecosystem. Note, that Centrifugo v4 supports clients working over the previous protocol iteration, so you can update Centrifugo to v4 without any changes on the client side (but you need to turn on `use_client_protocol_v1_by_default` option in the configuration of Centrifugo, see Centrifugo v4 migration guide for details). Several important changes: * new API according to the new [SDK API specification](https://centrifugal.dev/docs/transports/client_api) * all core features of Centrifugal client protocol are now supported * delegateQueue to which Client submitted events is removed, it's now up to developer to utilize queues for processing callbacks * SDK now uses Swift 5.0

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