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. |
contentStringtoStringpublic WebStreamOpened(ActorRef<WebDataMessage> actor)
public ActorRef<WebDataMessage> getFrom()
WebMessageThe actor that sent this message. This can be a virtual actor representing the web client.
getFrom in interface FromMessagegetFrom in class WebMessagepublic 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 WebMessagenullpublic 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 WebMessagenull