When evaluating code, CodeRelay sends the code as string to all the peers in its AddrBook. This can be used to create a shared code history in collaborative live coding performances.
create a new CodeRelay
addrBook |
an AddrBook where Peers are registered |
post |
a flag whether to post code to the post window. default: false |
oscPath |
the oscPath to use for relaying. default: '/codeRelay' |
encryptor |
an (optional) encryptor for codeStrings. |
codeDumpFunc |
an optional function to relay the code strings. default nil will be replaced by a standard function which relays to all peers in the addrBook. |
a new CodeRelay
When true, coderelay sends only code that has evaluated correctly.
a Boolean
When true, coderelay does not send code. Useful for temporary experiments that would clutter a performance history.
a Boolean
When true, coderelay will post to post window.
a Boolean
remove coderelay by removing codeDumpFunc from interpreter and freeing its oscFunc.
the coderelay
add History such that coderelay writes own code and relayed code into History.
the coderelay
remove History from coderelay.
the coderelay
internal method, makes the OSCFunc that receives shared code.
the coderelay