Skip to content

Commit 404bd6d

Browse files
committed
Improvement of ws server & client #132
1 parent 2a69760 commit 404bd6d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

source/server/ws/ws_client.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ void WSClient::onReceivedResponse(const HTTP::HTTPResponse& response)
105105
// Check for WebSocket handshaked status
106106
if (_ws_handshaked)
107107
{
108-
// Prepare receive frame from the remaining request body
109-
auto body = _request.body();
108+
// Prepare receive frame from the remaining response body
109+
auto body = response.body();
110110
PrepareReceiveFrame(body.data(), body.size());
111111
return;
112112
}

source/server/ws/wss_client.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ void WSSClient::onReceivedResponse(const HTTP::HTTPResponse& response)
105105
// Check for WebSocket handshaked status
106106
if (_ws_handshaked)
107107
{
108-
// Prepare receive frame from the remaining request body
109-
auto body = _request.body();
108+
// Prepare receive frame from the remaining response body
109+
auto body = response.body();
110110
PrepareReceiveFrame(body.data(), body.size());
111111
return;
112112
}

0 commit comments

Comments
 (0)