func (s *Socket) AddConnection(conn *Connection) {
	s.lock.Lock()
	uuid, err := newUUID()
	if err != nil {
		panic(err)
	}

	s.conns[uuid] = conn
	s.ids = append(s.ids, uuid)
	s.lock.Unlock()
}
// AddConnection adds a gomq.Connection to the socket.
// It is goroutine safe.
AddConnection adds a gomq.Connection to the socket.
It is goroutine safe.
// AddConnection adds a gomq . Connection to the socket . // It is goroutine safe .
func (s *Socket) AddConnection(conn *Connection) {
	s.lock.Lock()
	uuid, err := newUUID()
	if err != nil {
		panic(err)
	}
	s.conns[uuid] = conn
	s.ids = append(s.ids, uuid)
	s.lock.Unlock()
}
func ( s * Socket ) AddConnection ( conn * Connection ) { s . lock . Lock ( ) uuid , err := newUUID ( ) if err != nil { panic ( err ) } s . conns [ uuid ] = conn s . ids = append ( s . ids , uuid ) s . lock . Unlock ( ) }
AddConnection adds a gomq.Connection to the socket.
AddConnection adds a gomq . Connection to the socket .