MCPcopy
hub / github.com/socketio/socket.io / _onLoad

Method _onLoad

packages/engine.io-client/lib/transports/polling-xhr.ts:273–280  ·  view source on GitHub ↗

* Called upon load. * * @private

()

Source from the content-addressed store, hash-verified

271 * @private
272 */
273 private _onLoad() {
274 const data = this._xhr.responseText;
275 if (data !== null) {
276 this.emitReserved("data", data);
277 this.emitReserved("success");
278 this._cleanup();
279 }
280 }
281
282 /**
283 * Aborts the request.

Callers 2

_createMethod · 0.95
socket.io.jsFile · 0.80

Calls 1

_cleanupMethod · 0.95

Tested by

no test coverage detected