Table of Contents

Method WithPing

Namespace
Sisk.Core.Http.Streams
Assembly
Sisk.Core.dll

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

HttpWebSocket

WithPing(string, TimeSpan)

Configures the ping policy for this instance of HTTP Web Socket.

public HttpWebSocket WithPing(string probeMessage, TimeSpan interval)

Parameters

probeMessage string

The payload/probe message that is sent to the client.

interval TimeSpan

The sending interval for each probe message.

Returns

HttpWebSocket