Welcome to the JSChannel fake window example page. View source and you'll get an idea of how you can use Channel.buildFactory() to use jschannel as a generic RPC mechanism that's not limited to cross-document messaging.
First, here is basic function invocation: Next, here's error handling: Next, here's notification output: Finally, here's callback invocation output: