Fork me on GitHub

I would like to create a client for websockify (clojure version). Exactly I saw every language have own solution.. without Clojure (eg. python, golang). Plus I would like to learn, how to manage TCP/websockets. I tested with python client and works well the websockify server. When I tested with my clojure code I get the raw html response via websocket server (coming from python simpleHTTPServer TCP > websocket server):

"HTTP/1.0 200 OK\r
Server: SimpleHTTP/0.6 Python/3.9.6\r
Date: Mon, 11 Oct 2021 14:17:54 GMT\r
Content-type: text/html\r
Content-Length: 20\r
Last-Modified: Fri, 08 Oct 2021 12:43:13 GMT\r
Hello from Desktop!
Ofc I can use this if I drop this response into 2 parts (headers/ body). My question is: is that possible todo better (like duplex) and use with Aleph/ Manifold (as Netty?), is there any example code, where I need to add the response into Aleph TCP server? or what is the easiest way to use raw html request response (via ws) in Aleph? Thanks!


So I would like to solve this route: browser website > websocket client <---------> websocket server < http server


That is the goal.