sendResult sends a successful response
(id interface{}, result interface{})
| 400 | |
| 401 | // sendResult sends a successful response |
| 402 | func (s *Server) sendResult(id interface{}, result interface{}) { |
| 403 | resp := Response{ |
| 404 | JSONRPC: "2.0", |
| 405 | ID: id, |
| 406 | Result: result, |
| 407 | } |
| 408 | s.sendMessage(resp) |
| 409 | } |
| 410 | |
| 411 | // sendError sends an error response |
| 412 | func (s *Server) sendError(id interface{}, code int, message string) { |
no test coverage detected