CloseSession Method
Closes a session.
Syntax
async amqp.closeSession(name : string): Promise<void>
Remarks
This method closes the session named Name and removes it from the Session* properties. If no session with the given Name exists, an error will be thrown.
Any links open on the specified session when this method is called will be automatically closed and removed from the Link* properties.