All files remote-ref.ts

100% Statements 19/19
100% Branches 3/3
100% Functions 1/1
100% Lines 19/19

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 191x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 979x 979x 979x
 
export interface RemoteRef {
    ['Rε']: string;
    /**
     * The reference ID. This identifies a specific RPCProxy on the remote side. 
     * When encoding, this must always be a fresh GUID.
     */
    Rid?: string;
 
    /**
     * The side of the connection this reference applies to, from the perspective of 
     * the sender. 'L' means local to the sender, 'R' means remote to the sender.
     */
    S: 'L' | 'R'
}
 
export function isRemoteRef(obj: any): obj is RemoteRef {
    return obj && typeof obj === 'object' && 'Rε' in obj;
}