Gumnut hosts a 'global session' for each of your document which is joined behind-the-scenes via WebSocket.
Add a React or similar library to your front-end, which acts a bit like React Hook Form but with collaborative superpowers. Your backend needs to provide a signed JWT, signed such that Gumnut can verify the end-user and they can join the session.