I have implemented paging3 library in chat application. I am showing messages in recycler view with paging, and it's working fine. Furthermore, I am also receiving message on socket which I have to add in adapter. Now I have to add single message object in adapter, but I have not found any function or way to add it in PagingDataAdapter adapter.
class ChatAdapter() : PagingDataAdapter<UiModel, RecyclerView.ViewHolder>(DiffCallBack)