Check out the
example directory for examples of how to use this code.
example/index.htmlin your browser and follow the instructions there, or
The code for either of these can be found in
src/example/node.js, depending on your context.
This library is designed to be useful for node applications that communicate with an urbit running either on the local computer or on a remote one.
setState after a message is received.
You must enable CORS requests on your urbit for this library to work in browser context. Use
+cors-registry to see domains which have made requests to your urbit, and then approve the needed one, e.g.