public class WebStreamOpened extends WebMessage
A message sent to a web actor indicating that a new stream has been opened by the client. The stream is usually a WebSocket or an SSE stream.
Constructor and Description |
---|
WebStreamOpened(ActorRef<WebDataMessage> actor) |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
getByteBufferBody()
The message’s binary body, if it has one;
null otherwise. |
ActorRef<WebDataMessage> |
getFrom()
The actor that sent this message.
|
String |
getStringBody()
The message’s text body, if it has one;
null otherwise. |
contentString
toString
public WebStreamOpened(ActorRef<WebDataMessage> actor)
public ActorRef<WebDataMessage> getFrom()
WebMessage
The actor that sent this message. This can be a virtual actor representing the web client.
getFrom
in interface FromMessage
getFrom
in class WebMessage
public String getStringBody()
The message’s text body, if it has one; null
otherwise.
This method returns null
, as it has no body.
getStringBody
in class WebMessage
null
public ByteBuffer getByteBufferBody()
The message’s binary body, if it has one; null
otherwise.
This method returns null
, as it has no body.
getByteBufferBody
in class WebMessage
null