update structure

This commit is contained in:
2016-08-12 01:32:57 +02:00
parent 19a883c641
commit cb3d7f4d7b
4 changed files with 65 additions and 12 deletions

View File

@@ -57,17 +57,30 @@ export class SocketRequest {
shortId:optionsArg.shortId
}
};
// requesting --------------------------
/**
*
* dispatches a socketrequest from the requesting to the receiving side
*/
dispatch(){
this.originSocketConnection.socket.emit("function",this.requestData);
return this.done.promise;
};
handleResponse(responseDataArg:ISocketRequestDataObject){
/**
* handles the response that is received by the requesting side
*/
private _handleResponse(responseDataArg:ISocketRequestDataObject){
this.done.resolve(responseDataArg);
}
createResponse(){
// responding --------------------------
/**
* creates the response on the responding side
*/
createResponse(){
}
};