All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.kaloz.gatling.http.cometd.CometDMessages.scala Maven / Gradle / Ivy

The newest version!
package org.kaloz.gatling.http.cometd

object CometDMessages {

  trait Published

  case class Ack(channel: String, clientId: Option[String], successful: Boolean, id: Option[String])

  case class Handshake(channel: String = "/meta/handshake", version: String = "1.0", supportedConnectionTypes: List[String] = List("websocket", "long-polling", "callback-polling"), minimumVersion: Option[String] = Some("0.9"), id: Option[String] = Some("${id}"), advice: Option[Map[String, Any]] = Some(Map("timeout" -> 60000, "interval" -> 0)), ext: Option[Any] = None)

  case class Connect(channel: String = "/meta/connect", clientId: String = "${clientId}", connectionType: String = "websocket", id: Option[String] = Some("${id}"), advice: Option[Map[String, Any]] = Some(Map("timeout" -> 0)))

  case class Disconnect(channel: String = "/meta/disconnect", clientId: String = "${clientId}", id: Option[String] = Some("${id}"))

  case class Subscribe(channel: String = "/meta/subscribe", clientId: String = "${clientId}", subscription: String, id: Option[String] = Some("${id}"))

  case class Unsubscribe(channel: String = "/meta/unsubscribe", clientId: String = "${clientId}", subscription: String, id: Option[String] = Some("${id}"))

  case class Publish(channel: String, data: Any, clientId: Option[String] = Some("${clientId}"), ext: Option[Any] = None)

  case class PublishedMap(channel: String, data: Map[String, Any]) extends Published


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy