This repo includes an example JS websocket sharejs server, and a client page that uses codemirror with sharejs.