Class ServerSentEvent$

java.lang.Object
akka.http.scaladsl.model.sse.ServerSentEvent$
All Implemented Interfaces:
Serializable

public class ServerSentEvent$ extends Object implements Serializable
See Also:
  • Field Details

    • MODULE$

      public static final ServerSentEvent$ MODULE$
      Static reference to the singleton instance of this Scala object.
  • Constructor Details

    • ServerSentEvent$

      public ServerSentEvent$()
  • Method Details

    • heartbeat

      public ServerSentEvent heartbeat()
    • apply

      public ServerSentEvent apply(String data, String type)
      Creates a ServerSentEvent.

      Parameters:
      data - data, may span multiple lines
      type - type, must not contain \n or \r
      Returns:
      (undocumented)
    • apply

      public ServerSentEvent apply(String data, String type, String id)
      Creates a ServerSentEvent.

      Parameters:
      data - data, may span multiple lines
      type - type, must not contain \n or \r
      id - id, must not contain \n or \r
      Returns:
      (undocumented)
    • apply

      public ServerSentEvent apply(String data, int retry)
      Creates a ServerSentEvent.

      Parameters:
      data - data, may span multiple lines
      retry - reconnection delay in milliseconds
      Returns:
      (undocumented)