Realtime, cannot 'send' broadcast and 'track' presence at the same time

I am working on a project similar to Google Docs using SvelteKit and QuillJS as my rich-text editor.

I am using Presence to maintain a 'shared' editor state - meaning that if a page is opened and there is a presenceState.. use that state to fill the 'editor-contents'.

I also subscribe to a 'broadcast' event of 'text-change' - so that whenever any of the users currently on this page add some text, all users can receive this event and handle accordingly.

However, it seems that I am not able to 'track' and 'send' at the same time. (I have provided a screenshot of what works, and what doesn't)
Screenshot_2022-12-07_at_13.13.40.png
Screenshot_2022-12-07_at_13.16.09.png
Was this page helpful?