renamed :in_sync enum to :sync_completed, since :in_sync is a very confusing term and doesn't go as per spec.
removed resume_sync_proc code that does client initiated sync when channel attaches with has_presence flag. This doesn't go as per spec.
added on_attach method to presence_manager that
start or end sync depending on has_presence flag
enter local members when on_attach method is called.
Added a new enter_client_with_id method to presence that enters local members with id. Earlier local members were entered at the end of the sync and didn't support entering members with given id.
Fixed #392
Commit summary
:in_sync
enum to:sync_completed
, since:in_sync
is a very confusing term and doesn't go as per spec.resume_sync_proc
code that does client initiated sync when channel attaches withhas_presence
flag. This doesn't go as per spec.on_attach
method topresence_manager
thathas_presence
flagon_attach
method is called.enter_client_with_id
method to presence that enters local members withid
. Earlier local members were entered at the end of the sync and didn't support entering members with given id.