pub fn setup_automerge_socket(state: AppState)
Set up the socket that communicates with the Automerge doc server.