Added basic socket.io functionality