sci

henrik42 2024-08-10T08:24:33.467079Z

Hey 👋 Is there an nREPL client that can be run i.e. interpreted with sci?

borkdude 2024-08-10T08:25:56.989619Z

this one works in bb: https://github.com/babashka/nrepl-client

henrik42 2024-08-10T08:33:26.072869Z

Will take a look. Still new to bb & co. The way I understand it is, that I can take the code and replace the java io stuff. I'm targeting the browser.

henrik42 2024-08-10T08:35:47.251409Z

For context: I want to make a scittle bookmarklet that can talk to my java nREPL backend.

borkdude 2024-08-10T09:15:07.793439Z

that's cool, but browsers can only do http connections right?

borkdude 2024-08-10T09:15:30.539449Z

scittle itself comes with an nREPL server which is proxied via a webserver

henrik42 2024-08-10T09:19:50.042669Z

Yes http only I believe. But isn't nREPL req/resp so that shouln't be problem in principle? No?

henrik42 2024-08-10T09:20:41.213129Z

I don't get that scittle + webserver.

borkdude 2024-08-10T09:20:42.854819Z

yes, but nREPL isn't an http protocol

borkdude 2024-08-10T09:20:52.157489Z

so you need some kind of adapter

henrik42 2024-08-10T09:21:14.783819Z

Man I know to little about this stuff 🤔

borkdude 2024-08-10T09:21:45.342999Z

it's not difficult to do but you need some kind of webserver that the browser can connect to and forwards the request to the nREPL server and vice versa

👍 1
borkdude 2024-08-10T09:21:57.988829Z

this is what scittle's nREPL does

henrik42 2024-08-10T09:22:42.610429Z

Ah ok that makes sense. Will look at the code. Thx