This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-12
Channels
- # aleph (3)
- # announcements (7)
- # babashka (22)
- # beginners (44)
- # calva (19)
- # chlorine-clover (1)
- # cider (20)
- # clj-kondo (55)
- # clojure (100)
- # clojure-austin (9)
- # clojure-europe (19)
- # clojure-italy (19)
- # clojure-nl (13)
- # clojure-portugal (2)
- # clojure-uk (7)
- # clojurescript (38)
- # community-development (3)
- # conjure (2)
- # cryogen (57)
- # cursive (6)
- # datalog (3)
- # datomic (24)
- # emacs (17)
- # exercism (8)
- # fulcro (3)
- # holy-lambda (8)
- # jobs (6)
- # jobs-discuss (9)
- # joker (3)
- # lambdaisland (5)
- # leiningen (5)
- # music (9)
- # nextjournal (1)
- # nrepl (2)
- # off-topic (9)
- # other-languages (4)
- # pathom (6)
- # polylith (23)
- # re-frame (5)
- # reagent (5)
- # remote-jobs (1)
- # reveal (1)
- # shadow-cljs (3)
- # tools-build (1)
- # tools-deps (3)
- # xtdb (2)
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
\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!