Moved file received listener from socketio client to server.