Skip to content

Service for full management and creation of chats in Yelm - mobile application builder. Integrate chat into your apps, UI examples are available in ProjectX

License

Notifications You must be signed in to change notification settings

tinyprocessing/Yelm.Chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yelm.Chat

Chat SDK

Start Chat.Core - register with platform from Yelm.Server wiki and put user_id

    YelmChat.start(platform: platform, user: user) {
      (load) in
      if (load) {
        YelmChat.core.register {
          (done) in
          if (done) {
            YelmChat.core.server(host: "https://chat.yelm.io/")
          }
        }
      }
    }

Add Yelm.Chat in view - SwiftUI

@ObservedObject var chat : ChatIO = YelmChat

All messages automate are in array

self.chat.chat.messages 

Get new maeesages - you need to collect messages when come back to app from notification

YelmChat.core.get()

All messages structure

public var id: Int
public var user: chat_user = chat_user(id: 0)
public var text: String = ""
public var time: String = ""
public var date: String = ""
public var attachments : [String : String] = [:]
public var asset : PHAsset? = nil
public var item : items_structure = items_structure()
    

About

Service for full management and creation of chats in Yelm - mobile application builder. Integrate chat into your apps, UI examples are available in ProjectX

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages