parameters: (self, req, res, account_addr, session_id)
docstring: @api {POST} /clients/{account_addr}/sessions/{session_id}/disconnect Disconnect a client
          @apiName DisconnectClient
          @apiGroup Client
          @apiParam {String} account_addr Cosmos account address of the client.
          @apiParam {String} session_id Unique session ID.
          @apiParam {String} token Token for communication with node.
          @apiSuccess {Boolean} success Success key.
function: def on_post(self, req, res, account_addr, session_id):
          """
          @api {POST} /clients/{account_addr}/sessions/{session_id}/disconnect Disconnect a client
          @apiName DisconnectClient
          @apiGroup Client
          @apiParam {String} account_addr Cosmos account address of the client.
          @apiParam {String} session_id Unique session ID.
          @apiParam {String} token Token for communication with node.
          @apiSuccess {Boolean} success Success key.
          """
          account_addr = str(account_addr)
          session_id = str(session_id)
          token = str(req.body['token'])
  
          client = db.clients.find_one({
              'account_addr': account_addr,
              'session_id': session_id,
              'token': token,
              'status': 'CONNECTED'
          })
          if client is None:
              message = {
                  'success': False,
                  'message': 'Wrong details.'
              }
          else:
              end_session(session_id)
              message = {
                  'success': True,
                  'message': 'Disconnected successfully.'
              }
  
          res.status = falcon.HTTP_200
          res.body = json.dumps(message)
function_tokens: def on_post ( self , req , res , account_addr , session_id ) : account_addr = str ( account_addr ) session_id = str ( session_id ) token = str ( req . body [ 'token' ] ) client = db . clients . find_one ( { 'account_addr' : account_addr , 'session_id' : session_id , 'token' : token , 'status' : 'CONNECTED' } ) if client is None : message = { 'success' : False , 'message' : 'Wrong details.' } else : end_session ( session_id ) message = { 'success' : True , 'message' : 'Disconnected successfully.' } res . status = falcon . HTTP_200 res . body = json . dumps ( message )