MCPcopy Create free account
hub / github.com/Roy3838/Observer / forward

Function forward

app/src/mcp/useRemoteControl.ts:211–215  ·  view source on GitHub ↗
(to: RemoteSessions, item: PhoneItem)

Source from the content-addressed store, hash-verified

209 let chain = Promise.resolve();
210 let image: string | undefined;
211 const forward = (to: RemoteSessions, item: PhoneItem) => {
212 chain = chain
213 .then(() => sendToPhone(to, item, () => getTokenRef.current()))
214 .catch(error => { Logger.error('MCP', `Remote send failed: ${error instanceof Error ? error.message : String(error)}`); });
215 };
216 return mcp.subscribeTurn(event => {
217 const { turnId } = event;
218 if (event.kind === 'end') {

Callers 1

useRemoteControlFunction · 0.85

Calls 2

sendToPhoneFunction · 0.90
errorMethod · 0.80

Tested by

no test coverage detected