WebSocketHelpers

class Object
trait Matchable
class Any

Type members

Classlikes

case object BothClosed extends Close
sealed abstract class ClientHandshakeError(val status: Status, val message: String)
sealed abstract class Close
final case class EndOfStreamError() extends Exception
case object EndpointClosed extends Close
case object KeyNotFound extends ClientHandshakeError
case object Open extends Close
case object PeerClosed extends Close
final case class UnsupportedVersion(supported: Long, requested: Long) extends ClientHandshakeError

Value members

Concrete methods

def upgrade[F[_]](socket: Socket[F], req: Request[F], ctx: WebSocketContext[F], buffer: Array[Byte], receiveBufferSize: Int, idleTimeout: Duration, onWriteFailure: (Option[Request[F]], Response[F], Throwable) => F[Unit], errorHandler: Throwable => F[Response[F]], logger: Logger[F])(implicit F: Async[F]): F[Unit]