func (s *Socket) RemoveConnection(uuid string) {
	s.lock.Lock()
	for k, v := range s.ids {
		if v == uuid {
			s.ids = append(s.ids[:k], s.ids[k+1:]...)
		}
	}
	s.conns[uuid].net.Close()
	delete(s.conns, uuid)
	s.lock.Unlock()
}
// RemoveConnection accepts the uuid of a connection
// and removes that gomq.Connection from the socket
// if it exists. FIXME will bomb if uuid does not
// exist in map
RemoveConnection accepts the uuid of a connection
and removes that gomq.Connection from the socket
if it exists. FIXME will bomb if uuid does not
exist in map
// RemoveConnection accepts the uuid of a connection // and removes that gomq . Connection from the socket // if it exists . FIXME will bomb if uuid does not // exist in map
func (s *Socket) RemoveConnection(uuid string) {
	s.lock.Lock()
	for k, v := range s.ids {
		if v == uuid {
			s.ids = append(s.ids[:k], s.ids[k+1:]...)
		}
	}
	s.conns[uuid].net.Close()
	delete(s.conns, uuid)
	s.lock.Unlock()
}
func ( s * Socket ) RemoveConnection ( uuid string ) { s . lock . Lock ( ) for k , v := range s . ids { if v == uuid { s . ids = append ( s . ids [ : k ] , s . ids [ k + 1 : ] ... ) } } s . conns [ uuid ] . net . Close ( ) delete ( s . conns , uuid ) s . lock . Unlock ( ) }
RemoveConnection accepts the uuid of a connection
and removes that gomq.Connection from the socket
if it exists.
RemoveConnection accepts the uuid of a connection and removes that gomq . Connection from the socket if it exists .