send_keep_alive Method
Sends a keep-alive message.
Syntax
def send_keep_alive() -> bool: ...
Remarks
Use this method to send a keep-alive 'ping' to the server. The response, if it comes back, will be reported via the on_keep_alive_response event.
Keep-alive messages provide good means for keeping the connection alive and stay immune to timeouts.