Skip to content

Is it possible to change the JS runtime used as the eval target? #1019

Answered by thheller
mjmeintjes asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, this is possible. It is however somewhat manual currently.

First off you need to find the correct "runtime-id" you want to eval in. You can get that in a variety of ways:

  • The runtime itself will list this on startup in the shadow-cljs: #<an-integer> ready! console message. With the integer being the runtime-id. This can be tricky to identify the correct one though if you use one or more workers. Since they all log the same message with different numbers. Otherwise it'll be just one and easy to see.
  • The UI lists all runtimes and their ID. Defaults to http://localhost:9630/runtimes, again the #. It provides a little more info and differentiates between regular Browser and Workers. It …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mjmeintjes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants