websocket 添加ping消息处理

This commit is contained in:
aozhiwei 2022-06-24 13:48:11 +08:00
parent 600bba2be2
commit 27ecd5c940

View File

@ -212,9 +212,11 @@ namespace a8
return; return;
} }
if (opcode != BINARY_MODE) { if (opcode != BINARY_MODE) {
if (opcode != WEBSOCKET_FRAME_PING) {
Close(); Close();
return; return;
} }
}
if (!is_final_frame) { if (!is_final_frame) {
Close(); Close();
return; return;