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

Method end

packages/engine.io/lib/userver.ts:356–366  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

354 }
355
356 public end(data) {
357 if (this.isAborted) return;
358
359 this.res.cork(() => {
360 if (!this.statusWritten) {
361 // status will be inferred as "200 OK"
362 this.writeBufferedHeaders();
363 }
364 this.res.end(data);
365 });
366 }
367
368 public onData(fn) {
369 if (this.isAborted) return;

Callers 15

listenFunction · 0.45
abortRequestMethod · 0.45
doCloseMethod · 0.45
onRequestMethod · 0.45
onPollRequestMethod · 0.45
onDataRequestMethod · 0.45
onEndMethod · 0.45
respondMethod · 0.45
doWriteMethod · 0.45
compressMethod · 0.45
onRequestMethod · 0.45
onPollRequestMethod · 0.45

Calls 2

writeBufferedHeadersMethod · 0.95
corkMethod · 0.80

Tested by

no test coverage detected