callback on open method and allow to disable keepalives