[feat] added basic handling of keepalives