handling incoming socket data in appController
decoding recieved data
setting map size