MCPcopy
hub / github.com/google/tamperchrome / endRequest

Function endRequest

v1/app/background.js:235–246  ·  view source on GitHub ↗
(socketId, request, retval, debug)

Source from the content-addressed store, hash-verified

233}
234
235var endRequest = function(socketId, request, retval, debug) {
236 if (debug) {
237 retval.debug = true;
238 }
239 // send a response to both sockets
240 sendResponse(request.socketId, JSON.stringify(retval));
241 if (socketId) {
242 sendResponse(socketId, 'Responded to request '+request.reqId);
243 }
244 // mark the request as completed
245 request.completed = true;
246}
247
248// function to launch the application
249var launchApp = function() {

Callers 1

handleRequestFunction · 0.85

Calls 1

sendResponseFunction · 0.85

Tested by

no test coverage detected