From f4f418e9ecaa6091d2b7310956f57e579dea9b79 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sat, 21 Dec 2013 19:27:49 +0100 Subject: [PATCH] return message ids with send_http too --- lib/interface.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/interface.py b/lib/interface.py index 9389582e..2eaa272b 100644 --- a/lib/interface.py +++ b/lib/interface.py @@ -244,11 +244,13 @@ class Interface(threading.Thread): t1 = time.time() data = [] + ids = [] for m in messages: method, params = m if type(params) != type([]): params = [params] data.append( { 'method':method, 'id':self.message_id, 'params':params } ) self.unanswered_requests[self.message_id] = method, params, callback + ids.append(self.message_id) self.message_id += 1 if data: @@ -291,6 +293,7 @@ class Interface(threading.Thread): self.rtime = time.time() - t1 self.is_connected = True + return ids