function _clientForSocket(ws) {
    return _.find(_clients, function (client) {
        return (client.socket === ws);
    });
}
@private
Returns the client info for a given WebSocket, or null if that socket isn't registered.
@param {WebSocket} ws
@return {?{id: number, url: string, socket: WebSocket}}