You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
presence.enter and presence.update (and the others) call presence.updatePresence.
updatePresence will put messages on a queue to be sent later, in the event that the channel is currently attaching. This queue is a HashMap that is keyed by clientid. This means if a presence.enter and presence.update occur in quick succession before the channel attaches, the former is cancelled out by the latter (and any listeners are not called).
There are two possible options:
Queue up all presence messages and then send in-order on channel attach.
Only send the latest message, but call all event listeners with the result.
The spec needs updating to provide more clarification on what the behaviour should be (see: ably/specification#130), but the current implementation in ably-js is to just send all of the pending messages.
The text was updated successfully, but these errors were encountered:
AndyTWF
added
the
bug
Something isn't working. It's clear that this does need to be fixed.
label
Feb 1, 2023
presence.enter and presence.update (and the others) call presence.updatePresence.
updatePresence will put messages on a queue to be sent later, in the event that the channel is currently attaching. This queue is a HashMap that is keyed by clientid. This means if a presence.enter and presence.update occur in quick succession before the channel attaches, the former is cancelled out by the latter (and any listeners are not called).
There are two possible options:
The spec needs updating to provide more clarification on what the behaviour should be (see: ably/specification#130), but the current implementation in ably-js is to just send all of the pending messages.
The text was updated successfully, but these errors were encountered: