get stats from socket