Code coverage report for usr/local/google/home/trevj/src/uproxy-lib/build/dev/uproxy-lib/webrtc/signals.js

Statements: 100% (6 / 6)      Branches: 100% (2 / 2)      Functions: 100% (1 / 1)      Lines: 100% (6 / 6)      Ignored: none     

All files » usr/local/google/home/trevj/src/uproxy-lib/build/dev/uproxy-lib/webrtc/ » signals.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15      1 1 1         1 1   1  
// This enum describes a simple signal message protocol for establishing P2P
// connections. TODO: rename to more accurately describe the intended
// abstraction: namely: INIT, DATA, END
(function (Type) {
    Type[Type["OFFER"] = 0] = "OFFER";
    Type[Type["ANSWER"] = 1] = "ANSWER";
    // Possible candidate types, e.g. RELAY if a host is only accessible
    // via a TURN server. The values are taken from this file; as the comment
    // suggests, not all values may be found in practice:
    //   https://code.google.com/p/chromium/codesearch#chromium/src/third_party/webrtc/p2p/base/port.cc&q=port.cc&l=107
    Type[Type["CANDIDATE"] = 2] = "CANDIDATE";
    Type[Type["NO_MORE_CANDIDATES"] = 3] = "NO_MORE_CANDIDATES"; // no more data to send to peer
})(exports.Type || (exports.Type = {}));
var Type = exports.Type;