serverNegotiation
open override fun serverNegotiation(requestedProtocols: List<WebSocketExtensionHeader>): List<WebSocketExtensionHeader>
Content copied to clipboard
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).