Modified a bit for Program.cs
This commit is contained in:
parent
f5a1ce2c53
commit
e6e93bee12
@ -86,6 +86,8 @@ namespace Example3
|
||||
"/Chat",
|
||||
() => new Chat ("Anon#") {
|
||||
Protocol = "chat",
|
||||
// To ignore the Sec-WebSocket-Extensions header.
|
||||
IgnoreExtensions = true,
|
||||
// To validate the Origin header.
|
||||
OriginValidator = val => {
|
||||
// Check the value of the Origin header, and return true if valid.
|
||||
|
Loading…
Reference in New Issue
Block a user