MessageSocket

skunk.net.MessageSocket
See theMessageSocket companion object
trait MessageSocket[F[_]]

A higher-level BitVectorSocket that speaks in terms of Message.

Attributes

Companion
object
Source
MessageSocket.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def expect[B](f: PartialFunction[BackendMessage, B])(implicit or: Origin): F[B]

Attributes

Source
MessageSocket.scala
def flatExpect[B](f: PartialFunction[BackendMessage, F[B]])(implicit or: Origin): F[B]

Attributes

Source
MessageSocket.scala
def history(max: Int): F[List[Either[Any, Any]]]

Destructively read the last n messages from the circular buffer.

Destructively read the last n messages from the circular buffer.

Attributes

Source
MessageSocket.scala

Receive the next BackendMessage, or raise an exception if EOF is reached before a complete message arrives.

Receive the next BackendMessage, or raise an exception if EOF is reached before a complete message arrives.

Attributes

Source
MessageSocket.scala
def send(message: FrontendMessage): F[Unit]

Send the specified message.

Send the specified message.

Attributes

Source
MessageSocket.scala