# Disable PingPongManager in Unity client

**URL:** <https://forum.heroiclabs.com/t/disable-pingpongmanager-in-unity-client/86>\
**Category:** Local Setup\
**Created:** [July 22, 2019, 12:59pm UTC](https://forum.heroiclabs.com/t/disable-pingpongmanager-in-unity-client/86 "2019-07-22T12:59:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pranav8gitlab](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/pranav8gitlab/32/163_2.png) [@pranav8gitlab](https://forum.heroiclabs.com/u/pranav8gitlab)\
**Post date:** [July 22, 2019, 12:59pm UTC](https://forum.heroiclabs.com/t/disable-pingpongmanager-in-unity-client/86/1 "2019-07-22T12:59:49Z")

</div>

Hey please suggest a way to disable the ping pong manager on unity client.

---

<div class="post-metadata">

**Author:** ![novabyte](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/novabyte/32/1324_2.png) [@novabyte](https://forum.heroiclabs.com/u/novabyte)\
**Post date:** [July 22, 2019, 5:05pm UTC](https://forum.heroiclabs.com/t/disable-pingpongmanager-in-unity-client/86/2 "2019-07-22T17:05:01Z")

</div>

Hi @pranav8gitlab. You can disable the `PingPongManager` in the Unity client with this constructor:

```auto
var client = new Client("scheme", "host", port, "key"); // set correct values
var keepAliveIntervalSec = 0;
var socket = Socket.From(client, new WebSocketAdapter(keepAliveIntervalSec));

```

If you set the keep alive interval to 0 seconds it will disable it.

I should note though that it will mean that your game client devices will take longer to detect disconnects with bad socket connections. (i.e. From Wifi to 4G on mobile or loss of connectivity over cellular).

Normally I would recommend against it unless you have specific reasons to disable it.
