Swift client for Laravel event broadcasting.
Swift port of official Laravel JavaScript library Echo.
##Example
// TODO: Write an example
##Installation Requires Swift 3/Xcode 8.x
- Copy the Source folder into your Xcode project. (Make sure you add the files to your target(s))
- If you plan on using this from Objective-C, read this on exposing Swift code to Objective-C.
Add the project as a dependency to your Package.swift:
import PackageDescription
let package = Package(
name: "LaravelEchoProject",
dependencies: [
.Package(url: "https://github.com/tasior/laravel-echo-swift", majorVersion: 1)
]
)
Then import import LaravelEcho
.
Create Podfile
and add pod 'laravel-echo-swift'
:
use_frameworks!
target 'YourApp' do
pod 'laravel-echo-swift', '~> 1.0.0' # Or latest version
end
Install pods:
$ pod install
Import the module:
Swift:
import LaravelEcho
Objective-C:
@import LaravelEcho;
Add this line to your Seedfile
:
github "tasior/laravel-echo-swift", "v1.0.0", :files => "Sources/*.swift" # Or latest version
Run seed install
.