Swiftpack.co - hamed8080/FanapPodChatSDK as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by hamed8080.
hamed8080/FanapPodChatSDK v0.2.3
iOS Chat SDK for communicating with chat server easily.
⭐️ 0
🕓 8 weeks ago
iOS macOS macCatalyst
.package(url: "https://github.com/hamed8080/FanapPodChatSDK.git", from: "v0.2.3")

FanapPodChatSDK



Fanap's POD Chat Service - iOS SDK

Features

  • ☑ Simplify Socket connection to Async server
  • ☑ Caching system
  • ☑ Static file response
  • ☑ Downlaod / Upload File or Data or Image resumebble
  • ☑ Manage threads and messages

Installation

CocoaPods

Add in Podfile:

pod 'FanapPodChatSDK'

Intit

Chat.sharedInstance.createChatObject(config: .init(socketAddress          : socketAddresss,
                                                    serverName            : serverName,
                                                    token                 : token,
                                                    ssoHost               : ssoHost,
                                                    platformHost          : platformHost,
                                                    fileServer            : fileServer,
                                                    enableCache           : true,
                                                    reconnectOnClose      : true,
                                                    isDebuggingLogEnabled : true
))

Chat.sharedInstance.delegate = self

Usage

let req = SendTextMessageRequest(threadId: threadId, textMessage: "Hello World!", messageType: .TEXT)

Chat.sharedInstance.sendTextMessage(req, uniqueIdresult: nil) { sentResult, uniqueId , error in
    print(sentResult ?? "")
} onSeen: { seenResult, uniqueId , error in
    print(seenResult ?? "")
} onDeliver: { deliverResult, uniqueId , error in
    print(deliverResult ?? "")
}


Documentation

For more information about how to use Chat SDK visit Documentation

Developer Application

For more example and usage you can use developer implementation app

GitHub

link
Stars: 0
Last commit: 5 days ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics