RealtimePresence#leave
is broken when passing a PresenceMessage
instance
#1465
Labels
bug
Something isn't working. It's clear that this does need to be fixed.
RealtimePresence
’senter*
,update*
andleave*
methods all advertise themselves as accepting aPresenceMessage
instance instead of just a data object. This is the only way that ably-js supports passing message extras to these methods.However,
leave
does not handle aPresenceMessage
argument properly. Update thepresenceMessageExtras
test case intest/realtime/presence.test.js
and you'll see it fail:Test case
It fails because the received presence message looks like this:
that is, the extras end up incorrectly being nested inside the message’s data.
The text was updated successfully, but these errors were encountered: