Endre Bakken Stovner 2020-01-28T12:22:39.021500Z

Experienced scientific programmer, but web-noob here. I want to create a same machine backend + frontend app in clj/cljs. I am using luminus with +re-frame +shadow-cljs. What is the best way (easy, fast enough) to send messages between the front-end and back-end? http-requests?

Endre Bakken Stovner 2020-01-28T12:36:18.022100Z

Also, if you know any prior work I could steal ideas from, it would be much appreciated πŸ™‚

Janne Sauvala 2020-01-28T13:50:40.022200Z

Yes, http-requests are the way to go πŸ™‚

Endre Bakken Stovner 2020-01-28T13:56:49.022500Z

But I cannot wrap my head around how to do it XD I just asked in the re-frame forum also.

Endre Bakken Stovner 2020-01-28T13:56:56.022700Z

Thanks for replying btw πŸ™‚

Janne Sauvala 2020-01-28T14:00:00.022900Z

Start is always hard. I was googling around some nice example app. Here is atleast some docs about how re-frame talks to servers

Janne Sauvala 2020-01-28T14:01:45.023200Z

This might be helpful code-wise (i havent tested it but saw this in some comments)

Endre Bakken Stovner 2020-01-28T14:02:26.023500Z

Sb in the re-frame forum suggested

Janne Sauvala 2020-01-28T14:05:21.023800Z

I haven’t used that library but I have also heard people recommending it. I thought that is for to use websockets but I might be wrong πŸ™‚

Janne Sauvala 2020-01-28T14:11:49.024Z

I read your message on the re-frame channel; yes, use the sente-library with websockets πŸ™‚

Endre Bakken Stovner 2020-01-28T14:11:53.024200Z

It seems like it uses websockets. It might be better for my use-case, as it is a continuous channel πŸ™‚

Endre Bakken Stovner 2020-01-28T14:11:58.024400Z

Thanks for the help πŸ™‚