Browse Source

[Modify] Add it

pull/298/merge
sta 4 months ago
parent
commit
1b58fcd641
  1. 4
      Example2/Program.cs

4
Example2/Program.cs

@ -100,6 +100,10 @@ namespace Example2
// To emit a WebSocket.OnMessage event when receives a ping.
s.EmitOnPing = true;
// To disable a delay when send or receive buffer of the underlying
// TCP socket is not full.
s.NoDelay = true;
// To validate the Origin header.
s.OriginValidator = val => {
// Check the value of the Origin header, and return true if valid.

Loading…
Cancel
Save