Skip to content

Commit

Permalink
Reading the ws body is not blocking
Browse files Browse the repository at this point in the history
  • Loading branch information
adamw committed Jul 26, 2023
1 parent d835ffc commit b2f38ee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class HttpClientSyncBackend private (
_.get(): Unit
)
val baseResponse = Response((), StatusCode.SwitchingProtocols, "", Nil, Nil, request.onlyMetadata)
val body = Future(blocking(bodyFromHttpClient(Right(webSocket), request.response, baseResponse)))
val body = Future(bodyFromHttpClient(Right(webSocket), request.response, baseResponse))
val wsResponse = body.map(b => baseResponse.copy(body = b))
fillCell(wsResponse)
},
Expand Down

0 comments on commit b2f38ee

Please sign in to comment.