添加websocket close处理

This commit is contained in:
aozhiwei 2018-11-08 14:02:31 +08:00
parent 24f2912dbf
commit d3484d57a8

View File

@ -174,6 +174,10 @@ namespace a8
bool opcode_is_control = opcode & 0x8;
#endif
if (opcode == WEBSOCKET_FRAME_CLOSE) {
Close();
return;
}
if (!is_final_frame) {
return;
}