func (s *Socket) Close() {
	s.lock.Lock()
	for k, v := range s.ids {
		s.conns[v].net.Close()
		s.ids = append(s.ids[:k], s.ids[k+1:]...)
	}
	s.lock.Unlock()
}
// Close closes all underlying transport connections
// for the socket.
Close closes all underlying transport connections
for the socket.
// Close closes all underlying transport connections // for the socket .
func (s *Socket) Close() {
	s.lock.Lock()
	for k, v := range s.ids {
		s.conns[v].net.Close()
		s.ids = append(s.ids[:k], s.ids[k+1:]...)
	}
	s.lock.Unlock()
}
func ( s * Socket ) Close ( ) { s . lock . Lock ( ) for k , v := range s . ids { s . conns [ v ] . net . Close ( ) s . ids = append ( s . ids [ : k ] , s . ids [ k + 1 : ] ... ) } s . lock . Unlock ( ) }
Close closes all underlying transport connections
for the socket.
Close closes all underlying transport connections for the socket .