Add socket communication for polygon data and model data.