object EventStreamParser
Flow that converts raw byte string input into ServerSentEvents.
This API is made for use in non-akka-http clients, like Play's WSClient.
- Annotations
- @ApiMayChange()
- Source
- EventStreamParser.scala
- Alphabetic
- By Inheritance
- EventStreamParser
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- def apply(maxLineSize: Int, maxEventSize: Int, emitEmptyEvents: Boolean): Flow[ByteString, ServerSentEvent, NotUsed]
Flow that converts raw byte string input into ServerSentEvents.
Flow that converts raw byte string input into ServerSentEvents.
This API is made for use in non-akka-http clients, like Play's WSClient.
- maxLineSize
The maximum size of a line for the event Stream parser
- maxEventSize
The maximum size of a server-sent event for the event Stream parser
- emitEmptyEvents
Should the parser emit events with empty data field
- def apply(maxLineSize: Int, maxEventSize: Int): Flow[ByteString, ServerSentEvent, NotUsed]
Flow that converts raw byte string input into ServerSentEvents.
Flow that converts raw byte string input into ServerSentEvents.
This API is made for use in non-akka-http clients, like Play's WSClient.
- maxLineSize
The maximum size of a line for the event Stream parser
- maxEventSize
The maximum size of a server-sent event for the event Stream parser