WebSocketExtensionFactory

Factory that defines WebSocket extension. The factory is used in pair with WebSocketExtensionsConfig.install method to install WebSocket extension in client or server.

Usually this interface implemented in companion object of the origin WebSocketExtension.

Functions

Link copied to clipboard
abstract fun install(config: ConfigType.() -> Unit): ExtensionType

Create extension instance using config block. The extension instance is created for each WebSocket request.

Properties

Link copied to clipboard
abstract val key: AttributeKey<ExtensionType>

Key is used to locate extension.

Link copied to clipboard
abstract val rsv1: Boolean

First extension bit used by current extension.

Link copied to clipboard
abstract val rsv2: Boolean

Second extension bit used by current extension.

Link copied to clipboard
abstract val rsv3: Boolean

Third extension bit used by current extension.

Inheritors

Link copied to clipboard