close the response from responder side and notify requester
Source
void closeResponse(int rid, {Response response, DSError error}) { if (response != null) { if (_responses[response.rid] != response) { // this response is no longer valid return; } response._sentStreamStatus = StreamStatus.closed; rid = response.rid; } Map m = {'rid': rid, 'stream': StreamStatus.closed}; if (error != null) { m['error'] = error.serialize(); } _responses.remove(rid); addToSendList(m); }