Skip to content

Qiscus Chat SDK for Javascript

Latest
Compare
Choose a tag to compare
@apiep apiep released this 04 Aug 04:47
· 149 commits to master since this release

add functionality to close mqtt / realtime connection when needed

  • openRealtimeConnection(): Promise<boolean>
    re-open realtime connection after closing it
  • closeRealtimeConnection(): Promise<boolean>
    close realtime connection without affecting sync interval

On normal occurence, sync interval will be changed to 5 seconds from 30 seconds when realtime connection are closed
but if closeRealtimeConnection() are called, it will still on 30 seconds interval