MCPcopy Create free account
hub / github.com/apache/maka / writeClientFrame

Function writeClientFrame

packages/runtime-host/src/client/connection.ts:1680–1689  ·  view source on GitHub ↗
(
  transport: RuntimeHostMessageTransport,
  frame: ClientFrame,
)

Source from the content-addressed store, hash-verified

1678}
1679
1680function writeClientFrame(
1681 transport: RuntimeHostMessageTransport,
1682 frame: ClientFrame,
1683): Promise<void> {
1684 try {
1685 return transport.write(encodeProtocolMessage(frame));
1686 } catch (error) {
1687 return Promise.reject(error);
1688 }
1689}
1690
1691function requestTimeoutError(operation: OperationKey): RuntimeHostTransportError {
1692 return new RuntimeHostTransportError(

Callers 4

constructorMethod · 0.70
#requestOperationMethod · 0.70
#drainDomainRequestsMethod · 0.70

Calls 3

encodeProtocolMessageFunction · 0.85
writeMethod · 0.65
rejectMethod · 0.65

Tested by

no test coverage detected