NewNotification constructs a new Notification message for the supplied method and parameters.
(method string, params any)
| 94 | // NewNotification constructs a new Notification message for the supplied |
| 95 | // method and parameters. |
| 96 | func NewNotification(method string, params any) (*Request, error) { |
| 97 | p, merr := marshalToRaw(params) |
| 98 | return &Request{Method: method, Params: p}, merr |
| 99 | } |
| 100 | |
| 101 | // NewCall constructs a new Call message for the supplied ID, method and |
| 102 | // parameters. |
searching dependent graphs…