The demo at https://codepen.io/thealmarques/full/YzqOrWV seems to use websocket connections but the code published at https://github.com/thealmarques/tinymce-collaborative-editing-plugin seems to use polling instead.
Is this intentional? I would have expected the published code to match the published demo but it doesn't look like it.