#NEWLINE# def disconnect( self , receipt = str ( uuid . uuid4 ( ) ) , headers = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , **keyword_headers ) : #NEWLINE# #INDENT# "\n        Disconnect from the server.\n\n        :param receipt: the receipt to use (once the server acknowledges that receipt, we're\n            officially disconnected)\n        :param headers: a map of any additional headers the broker requires\n        :param keyword_headers: any additional headers the broker requires\n        " #NEWLINE# headers = utils . merge_headers ( [ headers , keyword_headers ] ) #NEWLINE# if receipt : #NEWLINE# #INDENT# headers [ HDR_RECEIPT ] = receipt #NEWLINE# #UNINDENT# self . send_frame ( CMD_DISCONNECT , headers )