You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
var id = 0;
|
|
|
|
function ping(inspector, callback) {
|
|
var newId = ++id;
|
|
var msg = "pong-" + newId;
|
|
|
|
inspector.Runtime.evaluate(JSON.stringify(msg), function (err, res) {
|
|
if (err) return callback(err, null);
|
|
|
|
callback(null, res.result.value === msg);
|
|
});
|
|
}
|
|
module.exports = ping;
|