kriskowal/q-comm — Issue #5: Understanding q-comm: the meaning of self-receive
Author: johnjbarton
Created: 2012-02-06 20:17:41+00:00
State: open

Here is a trace using q-comm debug prefixed with the window file. I don't understand the first 'receive' which is reported in the main window but is content from the main window.

index.html: 36: resolve: L"" {}
index.html: 36: sending: R"" "post" ["hi",["Hello, Child!"]]
index.html: 36: receive: {"type":"send","to":"","from":"2C68A813-ADDD-4A52-8F77-9720AAF6F45C","op":"post","args":["hi",["Hello, Child!"]]}
__________________________???
iframe.html: 95: resolve: L"" {}
iframe.html: 95: sending: R"" "post" ["hi",["Hello, Parent!"]]
index.html: Hello, Child!
index.html: 36: receive: {"type":"send","to":"","from":"B654DB40-5F8A-40E7-8CDE-D0DE7130AC64","op":"post","args":["hi",["Hello, Parent!"]]}
iframe.html: 95: receive: {"type":"send","to":"","from":"B654DB40-5F8A-40E7-8CDE-D0DE7130AC64","op":"post","args":["hi",["Hello, Parent!"]]}
index.html: Hello, Parent!
iframe.html: Hello, Parent!
index.html: 36: receive: {"type":"resolve","to":"2C68A813-ADDD-4A52-8F77-9720AAF6F45C","resolution":"Hi"}
index.html: 36: resolve: L"2C68A813-ADDD-4A52-8F77-9720AAF6F45C" "Hi"
iframe.html: 95: receive: {"type":"resolve","to":"2C68A813-ADDD-4A52-8F77-9720AAF6F45C","resolution":"Hi"}
index.html: Hi
index.html: 36: receive: {"type":"resolve","to":"B654DB40-5F8A-40E7-8CDE-D0DE7130AC64","resolution":"Hi"}
iframe.html: 95: receive: {"type":"resolve","to":"B654DB40-5F8A-40E7-8CDE-D0DE7130AC64","resolution":"Hi"}
iframe.html: 95: resolve: L"B654DB40-5F8A-40E7-8CDE-D0DE7130AC64" "Hi"
iframe.html: Hi
index.html: 36: receive: {"type":"resolve","to":"B654DB40-5F8A-40E7-8CDE-D0DE7130AC64","resolution":"Hi"}
iframe.html: 95: receive: {"type":"resolve","to":"B654DB40-5F8A-40E7-8CDE-D0DE7130AC64","resolution":"Hi"}
iframe.html: 95: resolve: L"B654DB40-5F8A-40E7-8CDE-D0DE7130AC64" "Hi"