add events for ping / pong rx #382

This commit is contained in:
Links
2019-05-30 20:15:03 +02:00
parent df3ef524b6
commit 0aa07421a6
5 changed files with 25 additions and 7 deletions

View File

@ -371,9 +371,13 @@ void WebSocketsClient::messageReceived(WSclient_t * client, WSopcode_t opcode, u
case WSop_continuation:
type = fin ? WStype_FRAGMENT_FIN : WStype_FRAGMENT;
break;
case WSop_close:
case WSop_ping:
type = WStype_PING;
break;
case WSop_pong:
type = WStype_PONG;
break;
case WSop_close:
default:
break;
}