clientNegotiation
fun clientNegotiation(
negotiatedProtocols: List<WebSocketExtensionHeader>
): Boolean
Overrides WebSocketExtension.clientNegotiation
This method is called only for a client, when it receives the WebSocket upgrade response.
Parameters
negotiatedProtocols
-
contains list of negotiated extensions from server (can be empty).
It’s up to extension to decide if it should be used or not.
Return
true
if the extension should be used by the client.