Connect your Phoenix and iOS applications through WebSockets!
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Example
Sources
SwiftPhoenixClient.xcodeproj
Tests
fastlane
.gitignore
.slather.yml Add fastlane via bundle to execute tests Feb 9, 2018
.travis.yml Updated travis file to run tests (#81) Feb 10, 2018
CHANGELOG.md Prepareing version 0.9.2 Sep 9, 2018
Cartfile
Cartfile.private
Cartfile.resolved Remove Copy Phase from project, resolving Carthage issues (#114) Sep 9, 2018
Gemfile Add fastlane via bundle to execute tests Feb 9, 2018
Gemfile.lock
LICENSE Updates README and adds a LICENSE Aug 21, 2015
Package.swift Swift 4.1 (#95) Apr 26, 2018
README.md Updated carthage version in README Sep 9, 2018
RELEASING.md Prepare version 0.9.1 Aug 2, 2018
SwiftPhoenixClient.podspec Prepareing version 0.9.2 Sep 9, 2018

README.md

Swift Phoenix Client

Swift Version License Platform Carthage compatible Open Source Helpers

About

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.

Installation

CocoaPods

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'
use_frameworks!

pod "SwiftPhoenixClient"

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

Carthage

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.

Usage

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

See the Usage Guide for details instructions

Example

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.

Development

Check out the wiki page for getting started

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

License

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