( id: JsonRpcId, code: number, message: string, data?: Record<string, unknown>, )
| 102 | ]); |
| 103 | |
| 104 | function createRpcError( |
| 105 | id: JsonRpcId, |
| 106 | code: number, |
| 107 | message: string, |
| 108 | data?: Record<string, unknown>, |
| 109 | ): JsonRpcResponse { |
| 110 | return { |
| 111 | jsonrpc: '2.0', |
| 112 | id, |
| 113 | error: { code, message, data }, |
| 114 | }; |
| 115 | } |
| 116 | |
| 117 | function sendJson( |
| 118 | res: http.ServerResponse<http.IncomingMessage>, |
no outgoing calls
no test coverage detected