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

zhttp.socket.IsWebSocket.scala Maven / Gradle / Ivy

There is a newer version: 2.0.0-RC11
Show newest version
package zhttp.socket

sealed trait IsWebSocket[+R, -E, +A, -B] {
  def apply[R1 >: R, E1 <: E, A1 >: A, B1 <: B](
    socket: Socket[R1, E1, A1, B1],
  ): Socket[R1, Throwable, WebSocketFrame, WebSocketFrame] =
    socket.asInstanceOf[Socket[R1, Throwable, WebSocketFrame, WebSocketFrame]]
}

object IsWebSocket extends IsWebSocket[Nothing, Any, WebSocketFrame, WebSocketFrame] {
  implicit def webSocketFrame[R]: IsWebSocket[R, Throwable, WebSocketFrame, WebSocketFrame] = IsWebSocket
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy