Skip to content

feathersjs-ecosystem/feathers-swift-socketio

Repository files navigation

FeathersSwiftSocketIO

Carthage compatible CocoaPods compatible GitHub release Swift 4.0.x platforms Build Status

What is FeathersSwiftSocketIO?

FeathersSwiftRest is a SocketIO provider for FeathersSwift.

Installation

Cocoapods

pod `FeathersSwiftSocketIO`

Carthage

Add the following line to your Cartfile:

github "feathersjs-ecosystem/feathers-swift-socketio"

Usage

To use FeathersSwiftSocket, create an instance of SocketProvider and initialize your FeathersSwift application:

let manager = SocketManager(socketURL: URL(string: "https://myawesomefeathersapi.com")!, config: [.log(true), .compress])
let provider = SocketProvider(manager: manager, timeout: 5)
let feathersSocketApp = Feathers(provider: provider)

Configuration options can be found on SocketIO's github.

That's it! Your feathers application will now support a real-time socketio api.