Method WithPing
WithPing(Action<HttpStreamPingPolicy>)
Configures the ping policy for this instance of HTTP Web Socket.
public HttpWebSocket WithPing(Action<HttpStreamPingPolicy> act)
Parameters
act
Action<HttpStreamPingPolicy>The method that runs on the ping policy for this HTTP Web Socket.
Returns
WithPing(string, TimeSpan)
Configures the ping policy for this instance of HTTP Web Socket.
public HttpWebSocket WithPing(string probeMessage, TimeSpan interval)
Parameters
probeMessage
stringThe payload/probe message that is sent to the client.
interval
TimeSpanThe sending interval for each probe message.