def sendResponse(self, id, result, error):
        """sends a response to the peer"""
        self.sendMessage({"result":result, "error": error, "id":id})
def sendResponse ( self , id , result , error ) : self . sendMessage ( { "result" : result , "error" : error , "id" : id } )
sends a response to the peer