Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
api sketch for autonode/tab-stream + iframes
// webgl-editor.com:
var available = via()
available.on('host', function(stream) {
if(stream.domain !== 'webgl-game.com') {
return
}
var rpc = dnode(local_functions)
rpc.pipe(stream).pipe(rpc)
})
// webgl-game.com:
var available = via()
available.on('host', function(stream) {
if(stream.domain !== 'webgl-editor.com') {
return
}
var rpc = dnode(local_functions)
rpc.pipe(stream).pipe(rpc)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.