Fork me on GitHub
#sci
<
2024-08-10
henrik4208:08:33

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

henrik4208:08:26

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.

henrik4208:08:47

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

borkdude09:08:07

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

borkdude09:08:30

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

henrik4209:08:50

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

henrik4209:08:41

I don't get that scittle + webserver.

borkdude09:08:42

yes, but nREPL isn't an http protocol

borkdude09:08:52

so you need some kind of adapter

henrik4209:08:14

Man I know to little about this stuff :thinking_face:

borkdude09:08:45

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
borkdude09:08:57

this is what scittle's nREPL does

henrik4209:08:42

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