I am trying to enable the WebSocket-Extension permessage-deflate
in IIS 8, but with no luck so far. It seems, that IIS does not support any extensions and does not respond with an Sec-WebSockets-Extension
header.
I tried to send it manually via Response.Headers.Add("Sec-WebSockets-Extension", "permessage-deflate; client_no_context_takeover; server_no_context_takeover")
and did the compression/decompression via DeflateStream
by hand before sending/after receiving, but then the receive methods of the WebSocket failed.
I also tried to implement the WebSocket manually as an OWIN-Middleware (with the help of the library vtortola), but IIS keeps closing my InputStream
and reading of data is not possible.
Did anyone successfully enable this feature?