sttp.ws

package sttp.ws

Members list

Concise view

Type members

Classlikes

trait WebSocket[F[_]]

Effectful interactions with a web socket. Interactions can happen:

Effectful interactions with a web socket. Interactions can happen:

  • on the frame level, by sending and receiving raw WebSocketFrame s
  • using the provided receive* methods to obtain concatenated data frames, or string/byte payloads, and the send* method to send string/binary frames.

The send* and receive* methods may result in a failed effect, with either one of WebSocketException exceptions, or a backend-specific exception. Specifically, they will fail with WebSocketClosed if the web socket is closed.

See the either and eitherClose method to lift web socket closed events to the value level.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
case class WebSocketBufferFull(capacity: Int) extends WebSocketException

Attributes

Graph
Supertypes
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
case class WebSocketClosed(frame: Option[Close]) extends WebSocketException

Attributes

frame

The received closing frame, if available.

Graph
Supertypes
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
abstract class WebSocketException(msg: String) extends Exception

Attributes

Graph
Supertypes
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Known subtypes
sealed trait WebSocketFrame

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Control
class Close
class Ping
class Pong
trait Data[T]
class Binary
class Text

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type