Swiftpack.co - vapor/websocket-kit as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by vapor.
vapor/websocket-kit 2.6.1
WebSocket client library built on SwiftNIO
⭐️ 196
🕓 16 weeks ago
iOS macOS tvOS linux macOS iOS
.package(url: "https://github.com/vapor/websocket-kit.git", from: "2.6.1")

NIOWebSocketClient

API Docs Team Chat MIT License Continuous Integration Swift 5.2

GitHub

link
Stars: 196
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

Remove use of NIOAtomics in favor of Atomics
16 weeks ago
This patch was authored by @MahdiBM and released by @0xTim.

The Problem

Starting with SwiftNIO 2.41.0, NIOAtomics is deprecated in favor of Atomics. This produces a warning if you use SwiftNIO 2.41.0 or higher.

Modifications

This PR add a dependency to Atomics to change the only use of NIOAtomics to Atomics, and suppress the warning.

What Warning?!

path/to/package/.build/checkouts/websocket-kit/Sources/WebSocketKit/WebSocketClient.swift:40:22: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
    let isShutdown = NIOAtomic.makeAtomic(value: false)
                     ^

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