func (session *Session) Send(packet packet.Packet) error {
	if session.closed {
		return errors.New("session closed")
	}

	session.sending.Add(1)
	err := session.transport.Send(packet)
	session.sending.Done()

	return err
}
// Send enqueues packets for sending
Send enqueues packets for sending
// Send enqueues packets for sending
func (session *Session) Send(packet packet.Packet) error {
	if session.closed {
		return errors.New("session closed")
	}
	session.sending.Add(1)
	err := session.transport.Send(packet)
	session.sending.Done()
	return err
}
func ( session * Session ) Send ( packet packet . Packet ) error { if session . closed { return errors . New ( " " ) } session . sending . Add ( 1 ) err := session . transport . Send ( packet ) session . sending . Done ( ) return err }
Send enqueues packets for sending
Send enqueues packets for sending