* and with in being the extension name, len is 0 and user is
* valid. Note though at this time the ESTABLISHED callback hasn't
* happened yet so if you initialize user content there, user
- * content during this callback might not be useful for anything.
- * Notice this callback comes to protocols[0]. */
+ * content during this callback might not be useful for anything. */
LWS_CALLBACK_CLIENT_CONFIRM_EXTENSION_SUPPORTED = 26,
/**< When a client
* connection is being prepared to start a handshake to a server,
* ask user code if it's OK to apply it on this
* particular connection + protocol
*/
- m = wsi->vhost->protocols[0].callback(wsi,
+ m = (wsi->protocol->callback)(wsi,
LWS_CALLBACK_CONFIRM_EXTENSION_OKAY,
wsi->user_space, ext_name, 0);
}
break;
#endif
- case LWS_CALLBACK_CLIENT_CONFIRM_EXTENSION_SUPPORTED:
- /* reject everything else except permessage-deflate */
- if (strcmp(in, "permessage-deflate"))
- return 1;
- break;
default:
break;
lws_extension_callback_pm_deflate,
"permessage-deflate; client_no_context_takeover; client_max_window_bits"
},
- {
- "deflate-frame",
- lws_extension_callback_pm_deflate,
- "deflate_frame"
- },
{ NULL, NULL, NULL /* terminator */ }
};