Socket.keepalive

bool keepalive() @property

Get keepalive property.

Returns

Whether to keep the connection alive by sending periodic pings.
void keepalive(bool propval) @property

Set keepalive property.

Parameters

propvalWhether to keep the connection alive by sending periodic pings.