• Robert Knight's avatar
    Buffer RPC calls made before port is connected · 53f06183
    Robert Knight authored
    Fix a race condition where inter-frame RPC calls would silently fail if made
    before the MessagePort discovery process had completed. Fix the issue by queuing
    calls in PortRPC and then dispatching them once a port is connected. This is
    similar to how MessagePort buffers messages until they are consumed by calling
    `start`.
    53f06183
port-rpc-test.js 4.31 KB