Skip to content

Commit

Permalink
fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed Mar 29, 2024
1 parent f5c145e commit 2566628
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/coro_http/examples/example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,8 @@ async_simple::coro::Lazy<void> use_websocket() {
result.type == ws_frame_type::WS_BINARY_FRAME) {
std::cout << result.data << "\n";
}

if (result.type == ws_frame_type::WS_PING_FRAME ||
result.type == ws_frame_type::WS_PONG_FRAME) {
else if (result.type == ws_frame_type::WS_PING_FRAME ||
result.type == ws_frame_type::WS_PONG_FRAME) {
// ping pong frame just need to continue, no need echo anything,
// because framework has reply ping/pong msg to client
// automatically.
Expand Down

0 comments on commit 2566628

Please sign in to comment.