MCPcopy Create free account
hub / github.com/ReactJSResources/react-webpack-babel / callback

Function callback

public/bundle.js:4516–4530  ·  view source on GitHub ↗
(packet, index, total)

Source from the content-addressed store, hash-verified

4514 var self = this;
4515 debug('polling got data %s', data);
4516 var callback = function(packet, index, total) {
4517 // if its the first message we consider the transport open
4518 if ('opening' == self.readyState) {
4519 self.onOpen();
4520 }
4521
4522 // if its a close packet, we close the ongoing requests
4523 if ('close' == packet.type) {
4524 self.onClose();
4525 return false;
4526 }
4527
4528 // otherwise bypass onData and handle the message
4529 self.onPacket(packet);
4530 };
4531
4532 // decode payload
4533 parser.decodePayload(data, this.socket.binaryType, callback);

Callers 14

hotDownloadManifestFunction · 0.85
hotCheckFunction · 0.85
hotUpdateDownloadedFunction · 0.85
hotApplyFunction · 0.85
bundle.jsFile · 0.85
writeEncodingFunction · 0.85
_removeBlobsFunction · 0.85
encodeBase64ObjectFunction · 0.85
encodeArrayBufferFunction · 0.85
encodeBlobFunction · 0.85
afterFunction · 0.85
proxyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected