MCPcopy Create free account
hub / github.com/codeaashu/claude-code / addProtocol

Method addProtocol

src/server/web/public/terminal.js:5470–5472  ·  view source on GitHub ↗
(e3, t3)

Source from the content-addressed store, hash-verified

5468 super(), this._bufferService = e3, this._coreService = t3, this._protocols = {}, this._encodings = {}, this._activeProtocol = "", this._activeEncoding = "", this._lastEvent = null, this._onProtocolChange = this.register(new o.EventEmitter()), this.onProtocolChange = this._onProtocolChange.event;
5469 for (const e4 of Object.keys(h)) this.addProtocol(e4, h[e4]);
5470 for (const e4 of Object.keys(d)) this.addEncoding(e4, d[e4]);
5471 this.reset();
5472 }
5473 addProtocol(e3, t3) {
5474 this._protocols[e3] = t3;
5475 }

Callers 1

constructorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected