serverNegotiation

fun serverNegotiation(
    requestedProtocols: List<WebSocketExtensionHeader>
): List<WebSocketExtensionHeader>

Overrides WebSocketExtension.serverNegotiation

This method is called only for a server, when it receives websocket session.

Parameters

requestedProtocols - contains list of requested extensions from client (can be empty).

Return list of protocols (with parameters) which server prefer to use for current client request.