final case class SocketProtocol(subprotocols: Option[String] = None, handshakeTimeoutMillis: Long = 10000L, forceCloseTimeoutMillis: Long = -1L, handleCloseFrames: Boolean = true, sendCloseFrame: CloseStatus = CloseStatus.NormalClosure, dropPongFrames: Boolean = true, decoderConfig: SocketDecoder = SocketDecoder.default) extends Product with Serializable
Ordering
- Alphabetic
- By Inheritance
Inherited
- SocketProtocol
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new SocketProtocol(subprotocols: Option[String] = None, handshakeTimeoutMillis: Long = 10000L, forceCloseTimeoutMillis: Long = -1L, handleCloseFrames: Boolean = true, sendCloseFrame: CloseStatus = CloseStatus.NormalClosure, dropPongFrames: Boolean = true, decoderConfig: SocketDecoder = SocketDecoder.default)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- val decoderConfig: SocketDecoder
- val dropPongFrames: Boolean
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val forceCloseTimeoutMillis: Long
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val handleCloseFrames: Boolean
- val handshakeTimeoutMillis: Long
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val sendCloseFrame: CloseStatus
- val subprotocols: Option[String]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withCloseFrame(code: Int, reason: String): SocketProtocol
Close frame to send, when close frame was not send manually.
- def withCloseStatus(status: CloseStatus): SocketProtocol
Close frame to send, when close frame was not send manually.
- def withDecoderConfig(socketDecoder: SocketDecoder): SocketProtocol
- def withForceCloseTimeout(duration: zio.Duration): SocketProtocol
Close the connection if it was not closed by the client after timeout specified
- def withForwardCloseFrames(forward: Boolean): SocketProtocol
Close frames should be forwarded
- def withForwardPongFrames(forward: Boolean): SocketProtocol
Pong frames should be forwarded
- def withHandshakeTimeout(duration: zio.Duration): SocketProtocol
Handshake timeout in mills
- def withSubProtocol(name: Option[String]): SocketProtocol
Used to specify the websocket sub-protocol