Message

akka.http.scaladsl.model.ws.Message
sealed trait Message extends Message

The ADT for WebSocket messages. A message can either be a binary or a text message.

Attributes

Source
Message.scala
Graph
Supertypes
class Message
class Object
trait Matchable
class Any
Known subtypes
class Streamed
class Strict
trait TextMessage
class Streamed
class Strict
Show all

Members list

Value members

Inherited methods

Returns this BinaryMessage if it is a binary message, throws otherwise.

Returns this BinaryMessage if it is a binary message, throws otherwise.

Attributes

Inherited from:
Message
Source
Message.scala

Attributes

Inherited from:
Message
Source
Message.scala

Returns this TextMessage if it is a text message, throws otherwise.

Returns this TextMessage if it is a text message, throws otherwise.

Attributes

Inherited from:
Message
Source
Message.scala

Is this message a strict one?

Is this message a strict one?

Attributes

Inherited from:
Message
Source
Message.scala

Is this message a text message? If true, asTextMessage will return this text message, if false, asBinaryMessage will return this binary message.

Is this message a text message? If true, asTextMessage will return this text message, if false, asBinaryMessage will return this binary message.

Attributes

Inherited from:
Message
Source
Message.scala