ktor-http-cio / io.ktor.http.cio.websocket / DefaultWebSocketSessionImpl / masking

masking

var masking: Boolean

Overrides WebSocketSession.masking

Enable or disable masking output messages by a random xor mask. Please note that changing this flag on the fly could be applied to the messages already sent (enqueued earlier) as the sending pipeline works asynchronously