NewCall constructs a new Call message for the supplied ID, method and parameters.
(id ID, method string, params any)
| 101 | // NewCall constructs a new Call message for the supplied ID, method and |
| 102 | // parameters. |
| 103 | func NewCall(id ID, method string, params any) (*Request, error) { |
| 104 | p, merr := marshalToRaw(params) |
| 105 | return &Request{ID: id, Method: method, Params: p}, merr |
| 106 | } |
| 107 | |
| 108 | func (msg *Request) IsCall() bool { return msg.ID.IsValid() } |
| 109 |
searching dependent graphs…