| 598 | } |
| 599 | |
| 600 | void SIOClientImpl::heartbeat(float /*dt*/) { |
| 601 | SocketIOPacket *packet = SocketIOPacket::createPacketWithType("heartbeat", _version); |
| 602 | |
| 603 | this->send(packet); |
| 604 | delete packet; |
| 605 | |
| 606 | CC_LOG_INFO("Heartbeat sent"); |
| 607 | } |
| 608 | |
| 609 | void SIOClientImpl::send(const ccstd::string &endpoint, const ccstd::string &s) { |
| 610 | switch (_version) { |