Function: compareMessageCursorAsc()
Makaio Framework / contracts / compareMessageCursorAsc
Function: compareMessageCursorAsc()
Section titled “Function: compareMessageCursorAsc()”compareMessageCursorAsc(
left,right):number
Defined in: ../../../packages/contracts/src/session/message-cursor.ts:10
Compare two message cursors in ascending 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