createSseTransport static method
Create an SSE transport with the given configuration
Implementation
static Future<Result<SseClientTransport, Exception>> createSseTransport({
required String serverUrl,
Map<String, String>? headers,
}) {
return Results.catchingAsync(
() => SseClientTransport.create(serverUrl: serverUrl, headers: headers),
);
}