spring-framework / org.springframework.http.codec / ServerSentEventHttpMessageReader / <init>

<init>

ServerSentEventHttpMessageReader()

Constructor without a Decoder. In this mode only String is supported as the data of an event.

ServerSentEventHttpMessageReader(@Nullable decoder: Decoder<*>)

Constructor with JSON Decoder for decoding to Objects. Support for decoding to String event data is built-in.