Gnat.ping

You're seeing just the function ping, go back to Gnat module for more information.
This function is deprecated. Pinging is handled internally by the connection, this functionality will be removed.

Ping the NATS server

This correlates to the PING command in the NATS protocol. If the NATS server responds with a PONG message this function will return :ok

{:ok, gnat} = Gnat.start_link()
:ok = Gnat.ping(gnat)