MCPcopy Index your code
hub / github.com/coder/mux / attach

Method attach

src/node/runtime/SSH2ConnectionPool.ts:514–520  ·  view source on GitHub ↗
(emitter: NodeJS.EventEmitter, label: string)

Source from the content-addressed store, hash-verified

512 if (proxy) {
513 // ProxyCommand streams can emit EPIPE/ECONNRESET; handle to avoid crashes.
514 const attach = (emitter: NodeJS.EventEmitter, label: string) => {
515 attachStreamErrorHandler(emitter, label, {
516 logger: log,
517 onIgnorable: cleanupProxySocket,
518 onUnexpected: cleanupProxySocket,
519 });
520 };
521
522 attach(proxy.process, "ssh2-proxy-process");
523 attach(proxy.sock, "ssh2-proxy-socket");

Callers 2

startStreamMethod · 0.80
terminal.test.tsFile · 0.80

Calls 1

attachStreamErrorHandlerFunction · 0.90

Tested by

no test coverage detected