Hi there, Good news! We have made some improvements in chat SDK JavaScript. Below is the list of changes:
- add clientId on MQTT connection
- add migration guide from 2.9. version to 3.1.0 version
- add
searchMessage()
method
type Params = { query: string roomIds: number[] userId?: string type?: string roomType?: string page?: number limit?: number callback?: (messages?: model.IQMessage[], error?: Error) => void } function searchMessage ({ query, roomIds = [], userId, type, roomType, page, limit, callback }: Params): void | Promise<model.IQMessage[]>
- add
getFileList()
method
type Params = {
roomIds?: number[]
fileType?: string
page?: number
limit?: number
callback?: (messages?: model.IQMessage[], error?: Error) => void
}
function getFileList ({ roomIds = [], fileType, page, limit, callback, }: Params): void | Promise<model.IQMessage[]>
- add
getRoomUnreadCount()
method
getRoomUnreadCount(callback?: IQCallback2<number>): void | Promise<number>
Notes:
searchMessage()
andgetFileList()
method only available as add ons package if you are interested to have it you can contact us
For further information, feedback, or questions about the changes above, please feel free to drop us some feedback at https://support.qiscus.com/.
Best regards,
SDK Product Team
Comments
0 comments
Please sign in to leave a comment.