serverNegotiation

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

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

Return

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

Parameters

requestedProtocols

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