Receive - Eval - Print - Loop
Receive a block of JS (presumably generated by a ClojureScript compiler) Evaluate it naively Print the result of evaluation to a string Send the resulting string back to the server Loop!
Receive - Eval - Print - Loop Receive a block of JS (presumably generated by a ClojureScript compiler) Evaluate it naively Print the result of evaluation to a string Send the resulting string back to the server Loop!
(connect repl-server-url)
Connects to a REPL server from an HTML document. After the connection is made, the REPL will evaluate forms in the context of the document that called this function.
Connects to a REPL server from an HTML document. After the connection is made, the REPL will evaluate forms in the context of the document that called this function.
(evaluate-javascript conn block)
Process a single block of JavaScript received from the server
Process a single block of JavaScript received from the server
(repl-print data)
(send-print url data)
(send-print url data n)
Send data to be printed in the REPL. If there is an error, try again up to 10 times.
Send data to be printed in the REPL. If there is an error, try again up to 10 times.
(send-result connection url data)
(start-evaluator url)
Start the REPL server connection.
Start the REPL server connection.
(wrap-message t data)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close