lein-figwheel

grav 2018-01-11T08:14:02.000375Z

Okay, so let’s say I have two clients connected and issue a (js/alert "bhauman rulez") in the cljs repl. Both clients will show an alert. But how about other interactions, like @app-state or something, which client will I hit then? Or rather, which client’s state is returned in the REPL?

2018-01-11T18:32:33.000694Z

i think the answer is “whichever client responds first”

bhauman 2018-01-11T19:23:04.000511Z

yeah the multi-client feature is mostly so that you can watch dev on another device and see if its going well

bhauman 2018-01-11T19:23:29.000056Z

to the recommended way to focus is to close a connection

bhauman 2018-01-11T19:25:31.000156Z

I have played with several solutions to this, the best one is to have each client maintain a reliable human readable name, and then allow the repl to focus on the named connection.

bhauman 2018-01-11T19:26:12.000192Z

we could have the responses and print output labeled with the name as well

👍 1
frenata 2018-01-11T21:35:59.000201Z

Struggling with figwheel today: I'd like to set my output-to js compile target to a generated value, but it seems to refuse anything other than a string literal?

frenata 2018-01-11T21:46:21.000091Z

I guess possibly this is more CLJS related than figwheel specific.

frenata 2018-01-11T22:26:54.000277Z

^ Resolved.