smartsocket/dist/smartsocket.classes.socketrequest.js

42 lines
2.2 KiB
JavaScript
Raw Normal View History

2016-08-09 09:42:21 +00:00
"use strict";
// import classes
const lik_1 = require("lik");
;
//export objects
exports.allRequestingSocketRequests = new lik_1.Objectmap();
exports.allRespondingSocketRequests = new lik_1.Objectmap();
// export classes
class SocketRequest {
constructor(optionsArg) {
this.status = "new";
this.side = optionsArg.side;
this.shortid = optionsArg.shortid;
this.requestData = optionsArg.requestData;
this.responseData = optionsArg.responseData;
2016-08-09 09:42:21 +00:00
if (this.side === "requesting") {
exports.allRequestingSocketRequests.add(this);
}
else {
exports.allRespondingSocketRequests.add(this);
}
;
}
;
_sendRequest(dataArg) {
2016-08-09 09:42:21 +00:00
}
;
_receiveRequest(dataArg) {
}
;
_sendResponse(dataArg) {
}
_receiveResponse(dataArg) {
2016-08-09 09:42:21 +00:00
}
;
_dispatch(dataArg) {
}
;
2016-08-09 09:42:21 +00:00
}
exports.SocketRequest = SocketRequest;
;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRzb2NrZXQuY2xhc3Nlcy5zb2NrZXRyZXF1ZXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRzb2NrZXQuY2xhc3Nlcy5zb2NrZXRyZXF1ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFLQSxpQkFBaUI7QUFDakIsc0JBQTBCLEtBQUssQ0FBQyxDQUFBO0FBWS9CLENBQUM7QUFFRixnQkFBZ0I7QUFDTCxtQ0FBMkIsR0FBRyxJQUFJLGVBQVMsRUFBaUIsQ0FBQztBQUM3RCxtQ0FBMkIsR0FBRyxJQUFJLGVBQVMsRUFBaUIsQ0FBQztBQUV4RSxpQkFBaUI7QUFDakI7SUFNSSxZQUFZLFVBQTJDO1FBTHZELFdBQU0sR0FBeUIsS0FBSyxDQUFDO1FBTWpDLElBQUksQ0FBQyxJQUFJ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