added socket.io for real-time chat