SSE (Backend)
SSE (Server-Sent Events) provides backward compatibility for clients that don't support Streamable HTTP.
Enabling SSEโ
let server = create_axum_server(
server_info,
handler,
AxumServerOptions {
sse_support: true, // default is true
..Default::default()
},
);
When sse_support is true, the HTTP backend serves both Streamable HTTP endpoints and SSE endpoints. Clients can connect using either protocol.