update tests:

starting with updating tests to use both server and client side to mimic operation
This commit is contained in:
2016-08-12 05:56:40 +02:00
parent 3afede95fc
commit ab2196fd5f
15 changed files with 192 additions and 66 deletions

View File

@ -69,6 +69,7 @@ export class SocketRequest {
*/
handleResponse(responseDataArg: ISocketRequestDataObject) {
this.done.resolve(responseDataArg);
allSocketRequests.remove(this);
}
// responding --------------------------
@ -85,6 +86,7 @@ export class SocketRequest {
shortId: this.shortid
}
this.originSocketConnection.socket.emit("functionResponse",requestData);
allSocketRequests.remove(this);
});
}
};