How to get timestamp of incoming xmpp message?

后端 未结 6 2065
梦谈多话
梦谈多话 2021-02-04 05:05

I am using aSmack library to communicate with remote xmpp server. I am able to send/receive messages, but I want to get timestamp of incoming message.

Could you tell me

6条回答
  •  南旧
    南旧 (楼主)
    2021-02-04 05:45

    Timestamp is not part of the regular messages. Therefore you cannot extract it.

    There is a spec (as mentioned by @Dmitry), but this only applies to specific types of messages. Typically those that are NOT realtime, such as offline and publishing the last pubsub message of a node when a new subscription is created. These are messages with an inherent delay built into them.

提交回复
热议问题