Function: compareMessageCursorDesc()
Makaio Framework / contracts / compareMessageCursorDesc
Function: compareMessageCursorDesc()
Section titled “Function: compareMessageCursorDesc()”compareMessageCursorDesc(
left,right):number
Defined in: ../../../packages/contracts/src/session/message-cursor.ts:23
Compare two message cursors in descending storage order.
Parameters
Section titled “Parameters”First cursor
messageId
Section titled “messageId”string = ...
timestamp
Section titled “timestamp”number = ...
Second cursor
messageId
Section titled “messageId”string = ...
timestamp
Section titled “timestamp”number = ...
Returns
Section titled “Returns”number
Negative when left sorts first, positive when right sorts first