replaced deprecated invocation with recommended method This is required to enable websocket server compression. By default builder has compression=false parameter and it is not possible to override it (factory could not be setup from anywhere)

Comment From: pivotal-issuemaster

@golosegor Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

Comment From: pivotal-issuemaster

@golosegor Thank you for signing the Contributor License Agreement!

Comment From: rstoyanchev

@golosegor thanks for the PR. I will address this in a slightly different way since we can't just remove existing public API without deprecation. Please, follow #24959. I should have something there today.