Packages

abstract class Message extends AnyRef

Represents a WebSocket message. A message can either be a binary message or a text message.

Source
Message.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Message
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Message()

Abstract Value Members

  1. abstract def asBinaryMessage: BinaryMessage

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

  2. abstract def asScala: scaladsl.model.ws.Message
  3. abstract def asTextMessage: TextMessage

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

  4. abstract def isText: Boolean

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