func NewConn() (*Conn, error) {
	id, err := shortid.UUID()
	if err != nil {
		return nil, err
	}

	c := &Conn{
		ID:             id,
		Session:        cmap.New(),
		resRoutes:      cmap.New(),
		deadline:       time.Second * time.Duration(300),
		disconnHandler: func(c *Conn) {},
	}
	c.connected.Store(false)
	return c, nil
}
func NewConn() (*Conn, error) {
	id, err := shortid.UUID()
	if err != nil {
		return nil, err
	}

	c := &Conn{
		ID:             id,
		Session:        cmap.New(),
		resRoutes:      cmap.New(),
		deadline:       time.Second * time.Duration(300),
		disconnHandler: func(c *Conn) {},
	}
	c.connected.Store(false)
	return c, nil
}
func NewConn ( ) ( * Conn , error ) { id , err := shortid . UUID ( ) if err != nil { return nil , err } c := & Conn { ID : id , Session : cmap . New ( ) , resRoutes : cmap . New ( ) , deadline : time . Second * time . Duration ( 300 ) , disconnHandler : func ( c * Conn ) { } , } c . connected . Store ( false ) return c , nil }
// NewConn creates a new Conn object.
NewConn creates a new Conn object .