add ping to websocket connection