Created
December 31, 2012 23:34
-
-
Save chrisdickinson/4423864 to your computer and use it in GitHub Desktop.
api sketch for autonode/tab-stream + iframes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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