|
|
|
@ -86,6 +86,8 @@ namespace Example3
|
|
|
|
"/Chat",
|
|
|
|
"/Chat",
|
|
|
|
() => new Chat ("Anon#") {
|
|
|
|
() => new Chat ("Anon#") {
|
|
|
|
Protocol = "chat",
|
|
|
|
Protocol = "chat",
|
|
|
|
|
|
|
|
// To ignore the Sec-WebSocket-Extensions header.
|
|
|
|
|
|
|
|
IgnoreExtensions = true,
|
|
|
|
// To validate the Origin header.
|
|
|
|
// To validate the Origin header.
|
|
|
|
OriginValidator = val => {
|
|
|
|
OriginValidator = val => {
|
|
|
|
// Check the value of the Origin header, and return true if valid.
|
|
|
|
// Check the value of the Origin header, and return true if valid.
|
|
|
|
|