跳到主要内容

keep_alive

开启连接保持机制(定期自动发送ping)

声明

void keep_alive(float interval)

参数

参数名描述
interval- 间隔时长(秒)

返回值

使用方式

返回文档