From 49c6f7804e33e012eb5348225c1abba5fb490b08 Mon Sep 17 00:00:00 2001 From: Mariia Skripchenko <61115099+marychatte@users.noreply.github.com> Date: Thu, 7 Nov 2024 12:34:50 +0100 Subject: [PATCH] Update ktor-server/ktor-server-plugins/ktor-server-sse/common/src/io/ktor/server/sse/Routing.kt Co-authored-by: Vik Nikolova --- .../ktor-server-sse/common/src/io/ktor/server/sse/Routing.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ktor-server/ktor-server-plugins/ktor-server-sse/common/src/io/ktor/server/sse/Routing.kt b/ktor-server/ktor-server-plugins/ktor-server-sse/common/src/io/ktor/server/sse/Routing.kt index f991909d693..0bbb5f9f12b 100644 --- a/ktor-server/ktor-server-plugins/ktor-server-sse/common/src/io/ktor/server/sse/Routing.kt +++ b/ktor-server/ktor-server-plugins/ktor-server-sse/common/src/io/ktor/server/sse/Routing.kt @@ -67,7 +67,7 @@ public fun Route.sse(handler: suspend SSESession.() -> Unit): Unit = processSSE( * Requires [SSE] plugin to be installed. * * @param path URL path at which to handle SSE requests. - * @param serialize serialize function for transforming data object into field `data` of `ServerSentEvent` + * @param serialize A function to serialize data objects into the `data` field of a `ServerSentEvent`. * @param handler function that defines the behavior of the SSE session. It is invoked when a client connects to the SSE * endpoint. Inside the handler, you can use the functions provided by [SSESessionWithSerialization] * to send events to the connected clients.