Add @deprecated annotations to legacy APIs (#1018)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
adam jones 2025-11-03 15:21:18 +00:00 • committed by GitHub
commit 216604720b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -57,6 +57,7 @@ export type SSEClientTransportOptions = {
/**
* Client transport for SSE: this will connect to a server using Server-Sent Events for receiving
* messages and make separate POST requests for sending messages.
* @deprecated SSEClientTransport is deprecated. Prefer to use StreamableHTTPClientTransport where possible instead. Note that because some servers are still using SSE, clients may need to support both transports during the migration period.
*/
export class SSEClientTransport implements Transport {
private _eventSource?: EventSource;