final case class ServerSentEvent(data: Option[String], eventType: Option[String], id: Option[EventId], retry: Option[FiniteDuration], comment: Option[String]) extends Renderable
- Companion:
- object
- Source:
- ServerSentEvent.scala
Value members
Concrete methods
writer.<<(":").<<(_$2).<<("\n")))
eventType.foreach[Writer](((_$3:String)=>writer.<<("event:").<<(_$3).<<("\n")))
idmatch{
caseNone=>
()
caseSome(EventId.reset)=>
writer.<<("id\n")
caseSome(EventId(id))=>
writer.<<("id:").<<(id).<<("\n")
}
retry.foreach[Writer](((_$4:FiniteDuration)=>writer.<<("retry:").<<(_$4.toMillis).<<("\n")))
writer.<<("\n")
}" class="documentableAnchor">
def writer.<<(":").<<(_$2).<<("\n")))
eventType.foreach[Writer](((_$3:String)=>writer.<<("event:").<<(_$3).<<("\n")))
idmatch{
caseNone=>
()
caseSome(EventId.reset)=>
writer.<<("id\n")
caseSome(EventId(id))=>
writer.<<("id:").<<(id).<<("\n")
}
retry.foreach[Writer](((_$4:FiniteDuration)=>writer.<<("retry:").<<(_$4.toMillis).<<("\n")))
writer.<<("\n")
}" class="documentableName ">render(writer: Writer): writer.type
- Source:
- ServerSentEvent.scala
Inherited methods
Generates a String rendering of this object
Generates a String rendering of this object
- Inherited from:
- Renderable
- Source:
- Renderable.scala