| 147 | } |
| 148 | |
| 149 | bool WebSocketServlet::sendPong(const char *text) |
| 150 | { |
| 151 | size_t len = !text ? 0 : strlen(text); |
| 152 | ws_->set_frame_opcode(FRAME_PONG); |
| 153 | ws_->set_frame_fin(true); |
| 154 | ws_->set_frame_payload_len(len); |
| 155 | return ws_->send_frame_data(text, len); |
| 156 | } |
| 157 | |
| 158 | bool WebSocketServlet::sendPing(const char *text) |
| 159 | { |
nothing calls this directly
no test coverage detected