Functional server sending random files over socket io at given interval