Best way to keep websocket connection alive?

if there no a message send or receive, the connection is closed after one minute.

I don’t want to continuously send a text message to keep the connection open.
Like this => keepAlive(maxIdle = 10.seconds, () => TextMessage.Strict(“Keep-alive message”)

Is there anything in Akka-HTTP that providing send naturally ping/pong messages. What do I need to do?

Note:I’m sorry my english.

I found it. The solution:

akka.http.server.websocket.periodic-keep-alive-max-idle = 10 seconds