[Modify] Edit it

This commit is contained in:
sta 2016-01-26 16:48:07 +09:00
parent 978b38fcf4
commit dcdd283f65

View File

@ -442,13 +442,15 @@ As a WebSocket server, if you would like to ignore the extensions requested from
```csharp ```csharp
wssv.AddWebSocketService<Chat> ( wssv.AddWebSocketService<Chat> (
"/Chat", "/Chat",
() => new Chat () { () =>
new Chat () {
// To ignore the extensions requested from a client. // To ignore the extensions requested from a client.
IgnoreExtensions = true IgnoreExtensions = true
}); }
);
``` ```
If it's set to `true`, the server doesn't return the **Sec-WebSocket-Extensions header** in the connection response. If it's set to `true`, the server doesn't return the **Sec-WebSocket-Extensions** header in its response.
I think this is useful when you get something error in connecting the server and exclude the extensions as a cause of the error. I think this is useful when you get something error in connecting the server and exclude the extensions as a cause of the error.