ListRoots lists the client roots.
(ctx context.Context, params *ListRootsParams)
| 1172 | |
| 1173 | // ListRoots lists the client roots. |
| 1174 | func (ss *ServerSession) ListRoots(ctx context.Context, params *ListRootsParams) (*ListRootsResult, error) { |
| 1175 | if err := ss.checkInitialized(methodListRoots); err != nil { |
| 1176 | return nil, err |
| 1177 | } |
| 1178 | return handleSend[*ListRootsResult](ctx, methodListRoots, newServerRequest(ss, orZero[Params](params))) |
| 1179 | } |
| 1180 | |
| 1181 | // CreateMessage sends a sampling request to the client. |
| 1182 | // |