All Projects → centrifugal → centrifuge-ios

centrifugal / centrifuge-ios

Licence: MIT license
Swift client to communicate with Centrifugo v1 from iOS over WebSocket (not maintained anymore)

Programming Languages

swift
15916 projects
objective c
16641 projects - #2 most used programming language
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to centrifuge-ios

Vernemq
A distributed MQTT message broker based on Erlang/OTP. Built for high quality & Industrial use cases.
Stars: ✭ 2,628 (+9285.71%)
Mutual labels:  messaging
Nio
💬 Nio is an upcoming matrix client for iOS.
Stars: ✭ 235 (+739.29%)
Mutual labels:  messaging
pulsar-flume-ng-sink
An Apache Flume Sink implementation to publish data to Apache pulsar
Stars: ✭ 19 (-32.14%)
Mutual labels:  messaging
Nats.c
A C client for NATS
Stars: ✭ 220 (+685.71%)
Mutual labels:  messaging
Azure Event Hubs
☁️ Cloud-scale telemetry ingestion from any stream of data with Azure Event Hubs
Stars: ✭ 233 (+732.14%)
Mutual labels:  messaging
Lurch
XEP-0384: OMEMO Encryption for libpurple.
Stars: ✭ 245 (+775%)
Mutual labels:  messaging
Vuvuzela
Private messaging system that hides metadata
Stars: ✭ 2,423 (+8553.57%)
Mutual labels:  messaging
microservice framework version 6
A Java framework to support applications utilising CQRS and Event Sourcing architectures
Stars: ✭ 25 (-10.71%)
Mutual labels:  messaging
Azure Service Bus Dotnet
☁️ .NET Standard client library for Azure Service Bus
Stars: ✭ 237 (+746.43%)
Mutual labels:  messaging
pact-example
Example project to demonstrate Contract Testing via Pact.
Stars: ✭ 58 (+107.14%)
Mutual labels:  messaging
Threema Ios
Threema App for iOS.
Stars: ✭ 220 (+685.71%)
Mutual labels:  messaging
Twitch Js
A community-centric, community-supported version of tmi.js
Stars: ✭ 225 (+703.57%)
Mutual labels:  messaging
Pulsar Manager
Apache Pulsar Manager
Stars: ✭ 247 (+782.14%)
Mutual labels:  messaging
Netdevpack
A smart set of common classes and implementations to improve your development productivity.
Stars: ✭ 220 (+685.71%)
Mutual labels:  messaging
todo-emojis
Track todos in Slack using custom checkbox emojis
Stars: ✭ 90 (+221.43%)
Mutual labels:  messaging
Webwire Go
A transport independent asynchronous duplex messaging library for Go
Stars: ✭ 216 (+671.43%)
Mutual labels:  messaging
Acts As Messageable
Gem that allows communication between the models.
Stars: ✭ 242 (+764.29%)
Mutual labels:  messaging
microq
Micro job queue built on mongo
Stars: ✭ 67 (+139.29%)
Mutual labels:  messaging
django-sitemessage
Reusable application for Django introducing a message delivery framework
Stars: ✭ 51 (+82.14%)
Mutual labels:  messaging
Pulsar Client Go
Apache Pulsar Go Client Library
Stars: ✭ 251 (+796.43%)
Mutual labels:  messaging

CentrifugeiOS

Build Status Version License Platform Carthage compatible

Example

To run the example project, clone the repo, and run pod install from the Example directory first. You could chat with here and command from Centrifugal web

Usage

Create client:

let timestamp = "\(Int(Date().timeIntervalSince1970))"
let token =  Centrifuge.createToken(string: "\(user)\(timestamp)", key: secret)
        
let creds = CentrifugeCredentials(token: token, user: user, timestamp: timestamp)
let url = "wss://centrifugo.herokuapp.com/connection/websocket"
client = Centrifuge.client(url: url, creds: creds, delegate: self)

Connect to server:

client.connect { message, error in }

Subscribe to channel:

client.subscribe(toChannel: channel, delegate: delegate) { message, error in }

Subscribe to private channel:

client.subscribe(privateChannel: channel, client: clientString, sign: sign, delegate: delegate) { message, error in }

Publish:

client.publish(toChannel: channel, data:  data) { message, error in }

See the example project and docs for more information.

Requirements

  • Version 0.1.0: Swift 2.2, iOS 8.0+
  • Version 1.0.0: Swift 2.3, iOS 8.0+, Xcode 7
  • Version 2.0.0: Swift 2.3, iOS 9.3+, Xcode 8
  • Version 3.0.0: Swift 3.0, iOS 9.3+, Xcode 8
  • Version 4.0.0: Swift 4.0, iOS 9.3+, Xcode 9
  • Version 5.0.0: Swift 4.0, iOS 9.3+, Xcode 9

Installation

CocoaPods

CentrifugeiOS is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "CentrifugeiOS"

Carthage

Add the following to your Cartfile:

github "centrifugal/centrifuge-ios"

Then run carthage update.

Author

German Saprykin, [email protected]

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].