public class ServerSentEvent$
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static ServerSentEvent$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
| Constructor and Description |
|---|
ServerSentEvent$() |
| Modifier and Type | Method and Description |
|---|---|
ServerSentEvent |
apply(java.lang.String data,
int retry)
Creates a
ServerSentEvent. |
ServerSentEvent |
apply(java.lang.String data,
java.lang.String type)
Creates a
ServerSentEvent. |
ServerSentEvent |
apply(java.lang.String data,
java.lang.String type,
java.lang.String id)
Creates a
ServerSentEvent. |
ServerSentEvent |
heartbeat() |
public static final ServerSentEvent$ MODULE$
public ServerSentEvent heartbeat()
public ServerSentEvent apply(java.lang.String data, java.lang.String type)
ServerSentEvent.
data - data, may span multiple linestype - type, must not contain \n or \rpublic ServerSentEvent apply(java.lang.String data, java.lang.String type, java.lang.String id)
ServerSentEvent.
data - data, may span multiple linestype - type, must not contain \n or \rid - id, must not contain \n or \rpublic ServerSentEvent apply(java.lang.String data, int retry)
ServerSentEvent.
data - data, may span multiple linesretry - reconnection delay in milliseconds