Skip to content

Commit

Permalink
Update ktor-server/ktor-server-plugins/ktor-server-sse/common/src/io/…
Browse files Browse the repository at this point in the history
…ktor/server/sse/Routing.kt

Co-authored-by:  Vik Nikolova <[email protected]>
  • Loading branch information
marychatte and vnikolova authored Nov 7, 2024
1 parent c7c6913 commit 49c6f78
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 49c6f78

Please sign in to comment.