Would be a good idea to generalize this to be a wanted(client) protocol instead.  The default wanted function would then be the trivial "function(client) {return true;}".  In addition to being more future safe, it's also marginally faster in the default case.