if you search for heartbeat in that repo it’s there Repository search results · GitHub
I assume it’s handled automatically..
I haven’t done anything in swift but there is an example project there https://github.com/davidstump/SwiftPhoenixClient/tree/master/Example/ChatExample with specific code here:






















