MCPcopy
hub / github.com/codeaashu/claude-code / registerHandler

Method registerHandler

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

Source from the content-addressed store, hash-verified

4751 }
4752 dispose() {
4753 this._handlers = /* @__PURE__ */ Object.create(null), this._handlerFb = () => {
4754 }, this._active = o;
4755 }
4756 registerHandler(e3, t3) {
4757 void 0 === this._handlers[e3] && (this._handlers[e3] = []);
4758 const i3 = this._handlers[e3];
4759 return i3.push(t3), { dispose: () => {
4760 const e4 = i3.indexOf(t3);
4761 -1 !== e4 && i3.splice(e4, 1);
4762 } };
4763 }

Callers 5

useKeybindingFunction · 0.80
useKeybindingsFunction · 0.80
PromptInputFunction · 0.80
registerDcsHandlerMethod · 0.80
registerOscHandlerMethod · 0.80

Calls 2

spliceMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected