Skip to content

FanapSoft/pod-chat-ios-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pod-Chat-iOS-SDK



Swift Platforms

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

Installation

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 = NewSendTextMessageRequest(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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages