Feature

companion object Feature : 
    ApplicationFeature<Application, WebSocketOptions, WebSockets>

Feature installation object.

Companion Object Properties

EXTENSIONS_KEY

val EXTENSIONS_KEY: AttributeKey<List<WebSocketExtension<*>>>

Key for saving configured WebSocket extensions for the specific call.

key

Unique key that identifies a feature

Companion Object Functions

install

fun install(
    pipeline: Application,
    configure: WebSocketOptions.() -> Unit
): WebSockets

Feature installation script