StompVersion

zio.http.stomp.StompVersion
See theStompVersion companion trait
object StompVersion

Attributes

Companion
trait
Source
StompVersion.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case object V1_0 extends StompVersion

STOMP 1.0 - Original specification

STOMP 1.0 - Original specification

  • No header escaping
  • No NACK command
  • No heartbeat support
  • Content-length is optional

Attributes

Source
StompVersion.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait StompVersion
class Object
trait Matchable
class Any
Show all
Self type
V1_0.type
case object V1_1 extends StompVersion

STOMP 1.1 - Added features

STOMP 1.1 - Added features

  • Header escaping added
  • NACK command added
  • Heartbeat support added
  • Content-length is recommended

Attributes

Source
StompVersion.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait StompVersion
class Object
trait Matchable
class Any
Show all
Self type
V1_1.type
case object V1_2 extends StompVersion

STOMP 1.2 - Latest specification (default)

STOMP 1.2 - Latest specification (default)

  • All features from 1.1
  • Improved header escaping rules
  • Content-length is mandatory for binary data

Attributes

Source
StompVersion.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait StompVersion
class Object
trait Matchable
class Any
Show all
Self type
V1_2.type

Inherited and Abstract types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def negotiate(clientAcceptVersions: List[StompVersion], serverSupportedVersions: List[StompVersion] = ...): Option[StompVersion]

Negotiate version between client accepted versions and server supported versions Returns the highest mutually supported version

Negotiate version between client accepted versions and server supported versions Returns the highest mutually supported version

Attributes

Source
StompVersion.scala

Parse accept-version header to get list of supported versions

Parse accept-version header to get list of supported versions

Attributes

Source
StompVersion.scala

Concrete fields

Attributes

Source
StompVersion.scala