WsMessageLensSpec

open class WsMessageLensSpec<out OUT>(get: LensGet<WsMessage, OUT>)

Represents a extraction of an entity from a target WsMessage.

Inheritors

Constructors

Link copied to clipboard
constructor(get: LensGet<WsMessage, OUT>)

Functions

Link copied to clipboard
fun <NEXT> map(nextIn: (OUT) -> NEXT): WsMessageLensSpec<NEXT>

Create another WsMessageLensSpec which applies the uni-directional transformation to the result. Any resultant Lens can only be used to extract the final type from a WsMessage.

Link copied to clipboard
open fun toLens(): WsMessageLens<OUT>

Create a lens for this Spec