I am currently migrating a server from akka-http to Finagle. The only thing left to port is one WebSocket endpoint. Unfortunately, I couldn't manage to find a way to upgrade an existing HTTP request to a WebSocket connection. It is possible to respond with a 101 message, but Finagle drops the Connection: Upgrade header which is required. Furthermore, it doesn't seem to be possible to access reader and writer and pipe those streams into an HttpWebSocket.
There isn't yet a story to upgrade from finagle-http to finagle-websocket if that's what you're after. You have to pick one. If you describe your app, we may be able to suggest a temporary workaround.
I am currently migrating a server from akka-http to Finagle. The only thing left to port is one WebSocket endpoint. Unfortunately, I couldn't manage to find a way to upgrade an existing HTTP request to a WebSocket connection. It is possible to respond with a 101 message, but Finagle drops the
Connection: Upgrade
header which is required. Furthermore, it doesn't seem to be possible to accessreader
andwriter
and pipe those streams into anHttpWebSocket
.