websocket 添加ping消息处理

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

View File

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