Use connection API to sharejs for more flexibility