Latest 0.9.3
License MIT
Platforms ios 9.0, requires ARC
Dependencies Starscream

Swift Phoenix Client

Carthage compatible
Open Source Helpers


Swift Phoenix Client is an extension of Starscream websocket client library
that makes it easy to connect to Phoenix sockets in a similar manner to the
Phoenix Socket Javascript library.



You can install SwiftPhoenix Client via CocoaPods by adding the following to your
Podfile. Keep in mind that in order to use Swift Phoenix Client, the minimum iOS
target must be ‘9.0’

platform :ios, '9.0'

pod "SwiftPhoenixClient"

and running pod install. From there you will need to add import SwiftPhoenixClient in any ViewController you want it to be used.


If you use Carthage to manage your dependencies, simply add
SwiftPhoenixClient to your Cartfile:

github "davidstump/SwiftPhoenixClient" ~> 0.9

Make sure you have added SwiftPhoenixClient.framework, and Starscream.framework to the "Linked Frameworks and Libraries" section of your target, and have included them in your Carthage framework copying build phase.


Using the Swift Phoenix Client is extremely easy (and familiar if have used the Phoenix JS client).

See the Usage Guide for details instructions


Check out the ViewController in this repo for a brief example of a simple iOS chat application using the Phoenix Chat Example

Also check out both the Swift and Elixir channels on IRC.


Check out the wiki page for getting started

Tested with the Phoenix Chat Server example, upgraded to Phoenix 1.2.


SwiftPhoenixClient is available under the MIT license. See the LICENSE file for more info.

Latest podspec

    "name": "SwiftPhoenixClient",
    "version": "0.9.3",
    "summary": "Connect your Phoenix and iOS applications through WebSockets!",
    "swift_version": "4.2",
    "description": "This is the SwiftPhoenixClient, an iOS libaray that works with thenPhoenix Framework's channels. The Phoenix Framework only ships with anJavascript client. Use this library to talk to your Phoenix app fromnyour iOS project. Check out the included chat client example, whichnworks with the Phoenix chat server example:n library implements Phoenix Channels on iOS. For more informationnon Phoenix Channels check out the guide:n",
    "homepage": "",
    "license": "MIT",
    "authors": {
        "David Stump": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.9.3"
    "platforms": {
        "ios": "9.0"
    "requires_arc": true,
    "source_files": "Sources/*.swift",
    "dependencies": {
        "Starscream": [
            "~> 3.0.6"

Pin It on Pinterest

Share This