creating a module for the socket.io logic to live