If the server accepts this extension, it will return the same header which has the corresponding value. And when your client receives it, this extension will be available.
If the server accepts this extension, it will return the same header which has the corresponding value. And when your client receives it, this extension will be available.
As a WebSocket server, if you would like to ignore the extensions requested from a client, you should set the `WebSocketBehavior.IgnoreExtensions` property to `true` in your `WebSocketBehavior` constructor or initializing it, such as the following.
As a WebSocket server, if you would like to ignore the extensions requested from a client, you should set the `WebSocketBehavior.IgnoreExtensions` property to `true` in your `WebSocketBehavior` constructor or initializing it, such as the following.
@ -443,14 +443,14 @@ As a WebSocket server, if you would like to ignore the extensions requested from
wssv.AddWebSocketService<Chat> (
wssv.AddWebSocketService<Chat> (
"/Chat",
"/Chat",
() => new Chat () {
() => new Chat () {
// To ignore the Sec-WebSocket-Extensions header.
// 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 the connection response.
I think that 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.