SwiftPhoenixClient

repository·master·Indexed 19 days ago

https://github.com/davidstump/swiftphoenixclient

A Swift port of the phoenix.js library that enables Swift applications to communicate with Phoenix Websocket backends via Channels and Presence. It utilizes URLSession's default WebSocket implementation and requires a minimum iOS target of 13.0 for core module functionality.

Tokens
574
Snippets
5
Records
6
Agent score
18%

What's inside SwiftPhoenixClient

  1. What is SwiftPhoenixClient?

    master

    SwiftPhoenixClient is a Swift port of phoenix.js. It allows Swift projects to connect to a Phoenix Websocket backend. The core module provides logic for Phoenix Channels and Presence.

    Technical Requirements:

    • It uses URLSession's default WebSocket implementation.
    • Requires a minimum iOS target of 13.0 for the core module functionality.
  2. Install SwiftPhoenixClient via Carthage

    master

    To manage SwiftPhoenixClient with Carthage, add the following line to your Cartfile:

    github "davidstump/SwiftPhoenixClient" ~> 5.3

    Then run carthage update. If this is your first time using Carthage in your project, follow the standard Carthage framework integration steps.

  3. Install SwiftPhoenixClient via CocoaPods

    master

    To install SwiftPhoenixClient using CocoaPods, add the following line to your Podfile. Note that the minimum iOS target for using this library must be set to '9.0'.

    After updating your Podfile, run pod install in your terminal. To use the library in your code, add import SwiftPhoenixClient to the relevant Swift files.

    pod "SwiftPhoenixClient", '~> 5.3'
  4. Install SwiftPhoenixClient via Swift Package Manager

    master

    You can integrate SwiftPhoenixClient using Swift Package Manager (SwiftPM).

    Via Xcode UI: Go to your Project Settings -> Swift Packages and add https://github.com/davidstump/SwiftPhoenixClient.git.

    Via Package.swift (Manual): Add the following as a dependency to your Package.swift and specify "SwiftPhoenixClient" as a dependency for your target:

    .package(url: "https://github.com/davidstump/SwiftPhoenixClient.git", .upToNextMajor(from: "5.2.2"))