how to mange socket.io and node.js client

am developing collaborative code editing (on ace editor) app using node.js and socket.io , my requirement is just two collaborate in same time one can write and the other is only read and they can Exchange that >my app is for pair programming

how can mange there access to app and accessed socket.io room ??