socket

fun Application.socket(path: String, builder: SocketBuilder.() -> Unit): Application

A function extension for installing WebSocket routes in an Application.

Return

The Application instance for chaining.

Parameters

path

The WebSocket route path.

builder

A lambda to configure the SocketBuilder.