socket with map