NotifyProgress sends a progress notification from the server to the client associated with this session. This is typically used to report on the status of a long-running request that was initiated by the client.
(ctx context.Context, params *ProgressNotificationParams)
| 1091 | // This is typically used to report on the status of a long-running request |
| 1092 | // that was initiated by the client. |
| 1093 | func (ss *ServerSession) NotifyProgress(ctx context.Context, params *ProgressNotificationParams) error { |
| 1094 | return handleNotify(ctx, notificationProgress, newServerRequest(ss, orZero[Params](params))) |
| 1095 | } |
| 1096 | |
| 1097 | func newServerRequest[P Params](ss *ServerSession, params P) *ServerRequest[P] { |
| 1098 | return &ServerRequest[P]{Session: ss, Params: params} |